summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjsing <>2017-01-24 02:56:17 +0000
committerjsing <>2017-01-24 02:56:17 +0000
commit343020a1b36f3e0cb464266e18359bfb32813884 (patch)
tree70f2390ef13dfd7953352c6e821268bd8bbbdef5 /src/lib
parentd78c389be49cfb5c1e450de1ffe9b19331871124 (diff)
downloadopenbsd-343020a1b36f3e0cb464266e18359bfb32813884.tar.gz
openbsd-343020a1b36f3e0cb464266e18359bfb32813884.tar.bz2
openbsd-343020a1b36f3e0cb464266e18359bfb32813884.zip
unifdef OPENSSL_NO_BIO - we do not support this in any form.
ok beck@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/ssl.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index 075c37e853..80e7558a2a 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl.h,v 1.120 2017/01/23 22:34:38 beck Exp $ */ 1/* $OpenBSD: ssl.h,v 1.121 2017/01/24 02:56:17 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 *
@@ -150,9 +150,7 @@
150#include <openssl/pem.h> 150#include <openssl/pem.h>
151#include <openssl/safestack.h> 151#include <openssl/safestack.h>
152 152
153#ifndef OPENSSL_NO_BIO
154#include <openssl/bio.h> 153#include <openssl/bio.h>
155#endif
156 154
157#ifndef OPENSSL_NO_DEPRECATED 155#ifndef OPENSSL_NO_DEPRECATED
158#include <openssl/buffer.h> 156#include <openssl/buffer.h>
@@ -818,16 +816,10 @@ struct ssl_st {
818 * same. This is so data can be read and written to different 816 * same. This is so data can be read and written to different
819 * handlers */ 817 * handlers */
820 818
821#ifndef OPENSSL_NO_BIO
822 BIO *rbio; /* used by SSL_read */ 819 BIO *rbio; /* used by SSL_read */
823 BIO *wbio; /* used by SSL_write */ 820 BIO *wbio; /* used by SSL_write */
824 BIO *bbio; /* used during session-id reuse to concatenate 821 BIO *bbio; /* used during session-id reuse to concatenate
825 * messages */ 822 * messages */
826#else
827 char *rbio; /* used by SSL_read */
828 char *wbio; /* used by SSL_write */
829 char *bbio;
830#endif
831 int server; /* are we the server side? - mostly used by SSL_clear*/ 823 int server; /* are we the server side? - mostly used by SSL_clear*/
832 824
833 struct ssl3_state_st *s3; /* SSLv3 variables */ 825 struct ssl3_state_st *s3; /* SSLv3 variables */
@@ -1187,14 +1179,12 @@ int PEM_write_SSL_SESSION(FILE *fp, SSL_SESSION *x);
1187#define SSL_get_server_tmp_key(s, pk) \ 1179#define SSL_get_server_tmp_key(s, pk) \
1188 SSL_ctrl(s,SSL_CTRL_GET_SERVER_TMP_KEY,0,pk) 1180 SSL_ctrl(s,SSL_CTRL_GET_SERVER_TMP_KEY,0,pk)
1189 1181
1190#ifndef OPENSSL_NO_BIO
1191BIO_METHOD *BIO_f_ssl(void); 1182BIO_METHOD *BIO_f_ssl(void);
1192BIO *BIO_new_ssl(SSL_CTX *ctx, int client); 1183BIO *BIO_new_ssl(SSL_CTX *ctx, int client);
1193BIO *BIO_new_ssl_connect(SSL_CTX *ctx); 1184BIO *BIO_new_ssl_connect(SSL_CTX *ctx);
1194BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx); 1185BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx);
1195int BIO_ssl_copy_session_id(BIO *to, BIO *from); 1186int BIO_ssl_copy_session_id(BIO *to, BIO *from);
1196void BIO_ssl_shutdown(BIO *ssl_bio); 1187void BIO_ssl_shutdown(BIO *ssl_bio);
1197#endif
1198 1188
1199int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str); 1189int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);
1200SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); 1190SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
@@ -1227,11 +1217,9 @@ int SSL_pending(const SSL *s);
1227int SSL_set_fd(SSL *s, int fd); 1217int SSL_set_fd(SSL *s, int fd);
1228int SSL_set_rfd(SSL *s, int fd); 1218int SSL_set_rfd(SSL *s, int fd);
1229int SSL_set_wfd(SSL *s, int fd); 1219int SSL_set_wfd(SSL *s, int fd);
1230#ifndef OPENSSL_NO_BIO
1231void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio); 1220void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
1232BIO * SSL_get_rbio(const SSL *s); 1221BIO * SSL_get_rbio(const SSL *s);
1233BIO * SSL_get_wbio(const SSL *s); 1222BIO * SSL_get_wbio(const SSL *s);
1234#endif
1235int SSL_set_cipher_list(SSL *s, const char *str); 1223int SSL_set_cipher_list(SSL *s, const char *str);
1236void SSL_set_read_ahead(SSL *s, int yes); 1224void SSL_set_read_ahead(SSL *s, int yes);
1237int SSL_get_verify_mode(const SSL *s); 1225int SSL_get_verify_mode(const SSL *s);
@@ -1280,9 +1268,7 @@ const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s,
1280 unsigned int *len); 1268 unsigned int *len);
1281unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s); 1269unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);
1282int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses); 1270int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses);
1283#ifndef OPENSSL_NO_BIO
1284int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses); 1271int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses);
1285#endif
1286void SSL_SESSION_free(SSL_SESSION *ses); 1272void SSL_SESSION_free(SSL_SESSION *ses);
1287int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp); 1273int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp);
1288int SSL_set_session(SSL *to, SSL_SESSION *session); 1274int SSL_set_session(SSL *to, SSL_SESSION *session);