Lines 424-430
int SSL_CTX_use_certificate_chain(SSL_CT
Link Here
|
424 |
X509 *x509; |
424 |
X509 *x509; |
425 |
unsigned long err; |
425 |
unsigned long err; |
426 |
int n; |
426 |
int n; |
427 |
STACK *extra_certs; |
427 |
STACK_OF(X509) *extra_certs; |
428 |
|
428 |
|
429 |
if ((bio = BIO_new(BIO_s_file_internal())) == NULL) |
429 |
if ((bio = BIO_new(BIO_s_file_internal())) == NULL) |
430 |
return -1; |
430 |
return -1; |
Lines 443-449
int SSL_CTX_use_certificate_chain(SSL_CT
Link Here
|
443 |
/* free a perhaps already configured extra chain */ |
443 |
/* free a perhaps already configured extra chain */ |
444 |
extra_certs = SSL_CTX_get_extra_certs(ctx); |
444 |
extra_certs = SSL_CTX_get_extra_certs(ctx); |
445 |
if (extra_certs != NULL) { |
445 |
if (extra_certs != NULL) { |
446 |
sk_X509_pop_free((STACK_OF(X509) *)extra_certs, X509_free); |
446 |
sk_X509_pop_free(extra_certs, X509_free); |
447 |
SSL_CTX_set_extra_certs(ctx,NULL); |
447 |
SSL_CTX_set_extra_certs(ctx,NULL); |
448 |
} |
448 |
} |
449 |
/* create new extra chain by loading the certs */ |
449 |
/* create new extra chain by loading the certs */ |