Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tls: remove SHA1 fingerprint (deprecated) #527

Merged
merged 1 commit into from
Sep 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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