summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authorjsing <>2020-06-05 18:14:05 +0000
committerjsing <>2020-06-05 18:14:05 +0000
commit8557b3cad65cc11d6a0163daf38dbcb957d6c367 (patch)
tree7403bef649ea2e983a9bc8cb89039ceaae2d6c81 /src/lib/libssl/s3_lib.c
parent6f7c659c8c3b6cefd82aad9d304cacd352bfe81a (diff)
downloadopenbsd-8557b3cad65cc11d6a0163daf38dbcb957d6c367.tar.gz
openbsd-8557b3cad65cc11d6a0163daf38dbcb957d6c367.tar.bz2
openbsd-8557b3cad65cc11d6a0163daf38dbcb957d6c367.zip
Use IANA allocated GOST ClientCertificateTypes.
IANA has allocated numbers for GOST ClientCertificateType. Use them in addition to private values (left in place for compatibility). Diff from Dmitry Baryshkov <dbaryshkov@gmail.com> Sponsored by ROSA Linux ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
-rw-r--r--src/lib/libssl/s3_lib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index f98ec3e098..e2fef72588 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_lib.c,v 1.194 2020/06/05 17:58:32 jsing Exp $ */ 1/* $OpenBSD: s3_lib.c,v 1.195 2020/06/05 18:14:05 jsing 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 *
@@ -2553,6 +2553,10 @@ ssl3_get_req_cert_types(SSL *s, CBB *cbb)
2553 return 0; 2553 return 0;
2554 if (!CBB_add_u8(cbb, TLS_CT_GOST12_512_SIGN)) 2554 if (!CBB_add_u8(cbb, TLS_CT_GOST12_512_SIGN))
2555 return 0; 2555 return 0;
2556 if (!CBB_add_u8(cbb, TLS_CT_GOST12_256_SIGN_COMPAT))
2557 return 0;
2558 if (!CBB_add_u8(cbb, TLS_CT_GOST12_512_SIGN_COMPAT))
2559 return 0;
2556 } 2560 }
2557#endif 2561#endif
2558 2562