diff options
author | 2015-02-06 08:30:23 +0000 | |
---|---|---|
committer | 2015-02-06 08:30:23 +0000 | |
commit | bdb3203319c116e7ce03edb52e5cf9d07b6e6ec6 (patch) | |
tree | 54d5810bf04e660b987098d9eb04e8be1362db30 /lib/libssl/src/ssl/ssl.h | |
parent | better error reporting for .br .fi .nf with arguments (diff) | |
download | wireguard-openbsd-bdb3203319c116e7ce03edb52e5cf9d07b6e6ec6.tar.xz wireguard-openbsd-bdb3203319c116e7ce03edb52e5cf9d07b6e6ec6.zip |
Bring back the horrible API that is get_cipher_by_char/put_cipher_by_char.
This API was intended to be an internal only, however like many things in
OpenSSL, it is exposed externally and parts of the software ecosystem are
now using it since there is no real alternative within the public API.
ok doug@, tedu@ and reluctantly miod@
Diffstat (limited to 'lib/libssl/src/ssl/ssl.h')
-rw-r--r-- | lib/libssl/src/ssl/ssl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libssl/src/ssl/ssl.h b/lib/libssl/src/ssl/ssl.h index 275743a6a06..571786dcf6b 100644 --- a/lib/libssl/src/ssl/ssl.h +++ b/lib/libssl/src/ssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.79 2015/02/06 01:37:11 reyk Exp $ */ +/* $OpenBSD: ssl.h,v 1.80 2015/02/06 08:30:23 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -418,6 +418,8 @@ struct ssl_method_st { int (*ssl_dispatch_alert)(SSL *s); long (*ssl_ctrl)(SSL *s, int cmd, long larg, void *parg); long (*ssl_ctx_ctrl)(SSL_CTX *ctx, int cmd, long larg, void *parg); + const SSL_CIPHER *(*get_cipher_by_char)(const unsigned char *ptr); + int (*put_cipher_by_char)(const SSL_CIPHER *cipher, unsigned char *ptr); int (*ssl_pending)(const SSL *s); int (*num_ciphers)(void); const SSL_CIPHER *(*get_cipher)(unsigned ncipher); |