diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2020-05-16 14:42:36 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2020-05-16 14:42:36 +0000 |
commit | e4b72d678a30243ed627b79b55f8dc6b8913bfd4 (patch) | |
tree | 42ab69677661457fc4925fc6ffebd9251cae1f13 /lib | |
parent | 01b0b7321fbbb8518b835b20d655fedf7cf8dace (diff) |
Add TLS13_ERR_NO_CERTIFICATE.
This was missed in previous tls13_server.c commit.
ok inoguchi@ tb@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/tls13_internal.h | 5 | ||||
-rw-r--r-- | lib/libssl/tls13_legacy.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/libssl/tls13_internal.h b/lib/libssl/tls13_internal.h index 5ea09db8a0d..98cbf4c8a7a 100644 --- a/lib/libssl/tls13_internal.h +++ b/lib/libssl/tls13_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_internal.h,v 1.79 2020/05/11 18:08:11 jsing Exp $ */ +/* $OpenBSD: tls13_internal.h,v 1.80 2020/05/16 14:42:35 jsing Exp $ */ /* * Copyright (c) 2018 Bob Beck <beck@openbsd.org> * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> @@ -45,7 +45,8 @@ __BEGIN_HIDDEN_DECLS #define TLS13_ERR_HRR_FAILED 17 #define TLS13_ERR_TRAILING_DATA 18 #define TLS13_ERR_NO_SHARED_CIPHER 19 -#define TLS13_ERR_NO_PEER_CERTIFICATE 20 +#define TLS13_ERR_NO_CERTIFICATE 20 +#define TLS13_ERR_NO_PEER_CERTIFICATE 21 #define TLS13_ALERT_LEVEL_WARNING 1 #define TLS13_ALERT_LEVEL_FATAL 2 diff --git a/lib/libssl/tls13_legacy.c b/lib/libssl/tls13_legacy.c index af1ad2169df..be89e9aa247 100644 --- a/lib/libssl/tls13_legacy.c +++ b/lib/libssl/tls13_legacy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_legacy.c,v 1.6 2020/05/11 17:46:46 jsing Exp $ */ +/* $OpenBSD: tls13_legacy.c,v 1.7 2020/05/16 14:42:35 jsing Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> * @@ -119,6 +119,9 @@ tls13_legacy_error(SSL *ssl) case TLS13_ERR_NO_SHARED_CIPHER: reason = SSL_R_NO_SHARED_CIPHER; break; + case TLS13_ERR_NO_CERTIFICATE: + reason = SSL_R_MISSING_RSA_CERTIFICATE; /* XXX */ + break; case TLS13_ERR_NO_PEER_CERTIFICATE: reason = SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE; break; |