diff options
| author | manuel <manuel@mausz.at> | 2023-08-10 09:49:16 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2023-08-10 09:49:16 +0200 |
| commit | 3fbb87334069fc85a992a05a51753d91239955c8 (patch) | |
| tree | f860045f68232a9ddbe9a8e4f564c084edad314a | |
| parent | 1d05c52c4ba31aadddab95e25faea0a1802c3bef (diff) | |
| download | qmail-3fbb87334069fc85a992a05a51753d91239955c8.tar.gz qmail-3fbb87334069fc85a992a05a51753d91239955c8.tar.bz2 qmail-3fbb87334069fc85a992a05a51753d91239955c8.zip | |
Use ASN1_STRING_...-functions where possible
| -rw-r--r-- | qmail-remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmail-remote.c b/qmail-remote.c index edfdb60..c2ab562 100644 --- a/qmail-remote.c +++ b/qmail-remote.c | |||
| @@ -666,7 +666,7 @@ static int tls_init(struct ip_mx *current_mx) | |||
| 666 | { | 666 | { |
| 667 | const GENERAL_NAME *gn = sk_GENERAL_NAME_value(gens, i); | 667 | const GENERAL_NAME *gn = sk_GENERAL_NAME_value(gens, i); |
| 668 | if (gn->type == GEN_DNS) | 668 | if (gn->type == GEN_DNS) |
| 669 | if (match_mx_host(mx_host, gn->d.ia5->data, gn->d.ia5->length)) break; | 669 | if (match_mx_host(mx_host, ASN1_STRING_get0_data(gn->d.dNSName), ASN1_STRING_length(gn->d.dNSName))) break; |
| 670 | } | 670 | } |
| 671 | sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free); | 671 | sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free); |
| 672 | } | 672 | } |
