in src/ngx_tcp_lurk_module.c [944:967]
ngx_int_t ngx_tcp_lurk_prf_ems(unsigned char *out, uint16_t version,
long master_prf, const void *client_random, int client_random_len,
const void *server_random, int server_random_len,
const void *session_hash, int hashlen,
const unsigned char *p, int len, ngx_log_t *log)
{
int rc;
if(version > SSL3_VERSION && version < TLS1_3_VERSION){
rc = ngx_tcp_lurk_tls1_prf_v2(master_prf,
TLS_MD_EXTENDED_MASTER_SECRET_CONST,
TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE,
session_hash, hashlen,
NULL, 0,
NULL, 0,
NULL, 0,
p, len,
out, SSL3_MASTER_SECRET_SIZE, log);
} else {
return NGX_ERROR;
}
return rc > 0 ? NGX_OK : NGX_ERROR;
}