diff options
author | tb <> | 2024-03-02 11:44:47 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 11:44:47 +0000 |
commit | 253b63fb51401d34d0ccce903a2a1c39698e8461 (patch) | |
tree | 964b668f0a28eb29ba5e6275bfae2cc13ee03003 /src/lib/libssl/s3_lib.c | |
parent | cf220f1f94cc80fb953d9dd88c042558052815b7 (diff) | |
download | openbsd-253b63fb51401d34d0ccce903a2a1c39698e8461.tar.gz openbsd-253b63fb51401d34d0ccce903a2a1c39698e8461.tar.bz2 openbsd-253b63fb51401d34d0ccce903a2a1c39698e8461.zip |
Export SSL_get_{peer_,}signature_type_nid()
Also move the prototypes to the correct header.
Oversight reported by Frank Lichtenheld, thanks!
Fixes https://github.com/libressl/openbsd/issues/147
ok jsing
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
-rw-r--r-- | src/lib/libssl/s3_lib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c index bb8e9465ba..9836d20bd0 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.249 2024/02/03 15:58:33 beck Exp $ */ | 1 | /* $OpenBSD: s3_lib.c,v 1.250 2024/03/02 11:44:47 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 | * |
@@ -1970,6 +1970,7 @@ SSL_get_signature_type_nid(const SSL *s, int *nid) | |||
1970 | 1970 | ||
1971 | return 1; | 1971 | return 1; |
1972 | } | 1972 | } |
1973 | LSSL_ALIAS(SSL_get_signature_type_nid); | ||
1973 | 1974 | ||
1974 | int | 1975 | int |
1975 | SSL_get_peer_signature_type_nid(const SSL *s, int *nid) | 1976 | SSL_get_peer_signature_type_nid(const SSL *s, int *nid) |
@@ -1986,6 +1987,7 @@ SSL_get_peer_signature_type_nid(const SSL *s, int *nid) | |||
1986 | 1987 | ||
1987 | return 1; | 1988 | return 1; |
1988 | } | 1989 | } |
1990 | LSSL_ALIAS(SSL_get_peer_signature_type_nid); | ||
1989 | 1991 | ||
1990 | long | 1992 | long |
1991 | ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) | 1993 | ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) |