FPLEN -> FPSTRLEN
This commit is contained in:
parent
04f62b4bdb
commit
bcb7e8a9fc
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"files.associations": {
|
||||
"sstream": "c",
|
||||
"regex": "c"
|
||||
}
|
||||
}
|
|
@ -3079,7 +3079,7 @@ static int dtls_state_setup(switch_rtp_t *rtp_session, switch_dtls_t *dtls)
|
|||
fp.type = dtls->remote_fp->type;
|
||||
|
||||
switch_core_cert_extract_fingerprint(cert, &fp);
|
||||
r = !memcmp(fp.str, dtls->remote_fp->str, MAX_FPLEN);
|
||||
r = !memcmp(fp.str, dtls->remote_fp->str, MAX_FPSTRLEN);
|
||||
|
||||
X509_free(cert);
|
||||
}
|
||||
|
@ -3279,7 +3279,7 @@ static int cb_verify_peer(int preverify_ok, X509_STORE_CTX *ctx)
|
|||
fp.type = dtls->remote_fp->type;
|
||||
|
||||
switch_core_cert_extract_fingerprint(cert, &fp);
|
||||
r = !memcmp(fp.str, dtls->remote_fp->str, MAX_FPLEN);
|
||||
r = !memcmp(fp.str, dtls->remote_fp->str, MAX_FPSTRLEN);
|
||||
|
||||
X509_free(cert);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue