Skip to content

Commit

Permalink
tls: remove SHA1 fingerprint (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored and sreimers committed Sep 23, 2022
1 parent 7d69560 commit 1201645
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion include/re_tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ enum tls_method {
};

enum tls_fingerprint {
TLS_FINGERPRINT_SHA1,
TLS_FINGERPRINT_SHA256,
};

Expand Down
7 changes: 0 additions & 7 deletions src/tls/openssl/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,13 +979,6 @@ static int cert_fingerprint(X509 *cert, enum tls_fingerprint type,

switch (type) {

case TLS_FINGERPRINT_SHA1:
if (size < 20)
return EOVERFLOW;

n = X509_digest(cert, EVP_sha1(), md, &len);
break;

case TLS_FINGERPRINT_SHA256:
if (size < 32)
return EOVERFLOW;
Expand Down

0 comments on commit 1201645

Please sign in to comment.