aboutsummaryrefslogtreecommitdiff
path: root/src/IO/tls_openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/IO/tls_openssl.c')
-rw-r--r--src/IO/tls_openssl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/IO/tls_openssl.c b/src/IO/tls_openssl.c
index ceb06f93..90be78b7 100644
--- a/src/IO/tls_openssl.c
+++ b/src/IO/tls_openssl.c
@@ -464,8 +464,9 @@ static bool_t Tls_check_cert_strength(SSL *ssl, Server_t *srv, int *choice)
* then trim off the "With..." part.
*/
b = BIO_new(BIO_s_mem());
- const X509_ALGOR *sigalg = X509_get0_tbs_sigalg(cert);
- rc = i2a_ASN1_OBJECT(b, sigalg->algorithm);
+ const ASN1_OBJECT *algorithm;
+ X509_ALGOR_get0(&algorithm, NULL, NULL, X509_get0_tbs_sigalg(cert));
+ rc = i2a_ASN1_OBJECT(b, algorithm);
if (rc > 0) {
rc = BIO_gets(b, buf, buflen);