Skip to content

Commit

Permalink
added null checks for out
Browse files Browse the repository at this point in the history
  • Loading branch information
smittals2 committed Jun 12, 2024
1 parent c78da0e commit 7291d4b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ssl/ssl_lib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3048,6 +3048,10 @@ uint16_t SSL_get_peer_signature_algorithm(const SSL *ssl) {
}

int SSL_get_peer_signature_nid(const SSL *ssl, int *psig_nid) {
if(psig_nid == NULL) {
return 0;
}

uint16_t sig_alg = SSL_get_peer_signature_algorithm(ssl);
if (sig_alg == 0) {
return 0;
Expand All @@ -3063,6 +3067,10 @@ int SSL_get_peer_signature_nid(const SSL *ssl, int *psig_nid) {
}

int SSL_get_peer_signature_type_nid(const SSL *ssl, int *psigtype_nid) {
if(psigtype_nid == NULL) {
return 0;
}

uint16_t sig_alg = SSL_get_peer_signature_algorithm(ssl);
if (sig_alg == 0) {
return 0;
Expand Down

0 comments on commit 7291d4b

Please sign in to comment.