mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-11 09:43:38 +00:00
FPLEN -> FPSTRLEN
This commit is contained in:
parent
04f62b4bdb
commit
bcb7e8a9fc
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
@ -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…
x
Reference in New Issue
Block a user