blob: 5b7373fdd388973bdfccdc7bd56442313fea8966 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
http://bugs.gentoo.org/327955
--- src/tls.c
+++ src/tls.c
@@ -888,7 +888,7 @@
char *buf;
int length;
/* needed to get the DNS subjectAltNames: */
- STACK *subj_alt_names;
+ STACK_OF(GENERAL_NAME) *subj_alt_names;
int subj_alt_names_count;
GENERAL_NAME *subj_alt_name;
/* did we find a name matching hostname? */
@@ -988,7 +988,7 @@
/* Try the DNS subjectAltNames. */
match_found = 0;
if ((subj_alt_names =
- X509_get_ext_d2i(x509cert, NID_subject_alt_name, NULL, NULL)))
+ (STACK_OF(GENERAL_NAME)*)X509_get_ext_d2i(x509cert, NID_subject_alt_name, NULL, NULL)))
{
subj_alt_names_count = sk_GENERAL_NAME_num(subj_alt_names);
for (i = 0; i < subj_alt_names_count; i++)
|