diff options
Diffstat (limited to 'src/lib/libssl/ssl_cert.c')
-rw-r--r-- | src/lib/libssl/ssl_cert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_cert.c b/src/lib/libssl/ssl_cert.c index 2e0dca58ea..03ef8565ac 100644 --- a/src/lib/libssl/ssl_cert.c +++ b/src/lib/libssl/ssl_cert.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_cert.c,v 1.80 2020/11/20 08:08:02 tb Exp $ */ | 1 | /* $OpenBSD: ssl_cert.c,v 1.81 2021/03/27 17:56:28 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -505,7 +505,7 @@ SSL_CTX_get_client_CA_list(const SSL_CTX *ctx) | |||
505 | STACK_OF(X509_NAME) * | 505 | STACK_OF(X509_NAME) * |
506 | SSL_get_client_CA_list(const SSL *s) | 506 | SSL_get_client_CA_list(const SSL *s) |
507 | { | 507 | { |
508 | if (s->internal->type == SSL_ST_CONNECT) { | 508 | if (!s->server) { |
509 | /* We are in the client. */ | 509 | /* We are in the client. */ |
510 | if ((s->version >> 8) == SSL3_VERSION_MAJOR) | 510 | if ((s->version >> 8) == SSL3_VERSION_MAJOR) |
511 | return (S3I(s)->tmp.ca_names); | 511 | return (S3I(s)->tmp.ca_names); |