diff options
author | Alexander Færøy <ahf@0x90.dk> | 2016-10-19 23:37:04 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@0x90.dk> | 2016-10-22 22:04:32 +0200 |
commit | 25824e2d3fb42def5efbb59ff34a51e31af04ec8 (patch) | |
tree | c1f5ad6773906217f2318c7c7e2031a71b591c1f /src | |
parent | 4e170c52335d06456aba65b46842aa98f8aabe7b (diff) | |
download | irssi-25824e2d3fb42def5efbb59ff34a51e31af04ec8.zip |
Lift ASN1_STRING declaration onto the entry of the function.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/network-openssl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/network-openssl.c b/src/core/network-openssl.c index 428881df..8c258eca 100644 --- a/src/core/network-openssl.c +++ b/src/core/network-openssl.c @@ -625,6 +625,7 @@ static void set_peer_cert_chain_info(TLS_REC *tls, SSL *ssl) X509_NAME *name = NULL; X509_NAME_ENTRY *entry = NULL; TLS_CERT_ENTRY_REC *tls_cert_entry_rec = NULL; + ASN1_STRING *data = NULL; chain = SSL_get_peer_cert_chain(ssl); @@ -646,8 +647,8 @@ static void set_peer_cert_chain_info(TLS_REC *tls, SSL *ssl) if (key == NULL) key = (char *)OBJ_nid2ln(nid); - ASN1_STRING *d = X509_NAME_ENTRY_get_data(entry); - value = (char *)ASN1_STRING_data(d); + data = X509_NAME_ENTRY_get_data(entry); + value = (char *)ASN1_STRING_data(data); tls_cert_entry_rec = tls_cert_entry_create_rec(key, value); tls_cert_rec_append_subject_entry(cert_rec, tls_cert_entry_rec); @@ -665,8 +666,8 @@ static void set_peer_cert_chain_info(TLS_REC *tls, SSL *ssl) if (key == NULL) key = (char *)OBJ_nid2ln(nid); - ASN1_STRING *d = X509_NAME_ENTRY_get_data(entry); - value = (char *)ASN1_STRING_data(d); + data = X509_NAME_ENTRY_get_data(entry); + value = (char *)ASN1_STRING_data(data); tls_cert_entry_rec = tls_cert_entry_create_rec(key, value); tls_cert_rec_append_issuer_entry(cert_rec, tls_cert_entry_rec); |