FPLEN -> FPSTRLEN

This commit is contained in:
Praveen Kumar D 2023-05-13 00:19:20 +05:30
parent 04f62b4bdb
commit bcb7e8a9fc
2 changed files with 8 additions and 2 deletions

6
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"files.associations": {
"sstream": "c",
"regex": "c"
}
}

View File

@ -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 {