diff options
author | jsing <> | 2017-01-24 02:56:17 +0000 |
---|---|---|
committer | jsing <> | 2017-01-24 02:56:17 +0000 |
commit | 343020a1b36f3e0cb464266e18359bfb32813884 (patch) | |
tree | 70f2390ef13dfd7953352c6e821268bd8bbbdef5 /src/lib | |
parent | d78c389be49cfb5c1e450de1ffe9b19331871124 (diff) | |
download | openbsd-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.h | 16 |
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 | ||
1191 | BIO_METHOD *BIO_f_ssl(void); | 1182 | BIO_METHOD *BIO_f_ssl(void); |
1192 | BIO *BIO_new_ssl(SSL_CTX *ctx, int client); | 1183 | BIO *BIO_new_ssl(SSL_CTX *ctx, int client); |
1193 | BIO *BIO_new_ssl_connect(SSL_CTX *ctx); | 1184 | BIO *BIO_new_ssl_connect(SSL_CTX *ctx); |
1194 | BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx); | 1185 | BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx); |
1195 | int BIO_ssl_copy_session_id(BIO *to, BIO *from); | 1186 | int BIO_ssl_copy_session_id(BIO *to, BIO *from); |
1196 | void BIO_ssl_shutdown(BIO *ssl_bio); | 1187 | void BIO_ssl_shutdown(BIO *ssl_bio); |
1197 | #endif | ||
1198 | 1188 | ||
1199 | int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str); | 1189 | int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str); |
1200 | SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); | 1190 | SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); |
@@ -1227,11 +1217,9 @@ int SSL_pending(const SSL *s); | |||
1227 | int SSL_set_fd(SSL *s, int fd); | 1217 | int SSL_set_fd(SSL *s, int fd); |
1228 | int SSL_set_rfd(SSL *s, int fd); | 1218 | int SSL_set_rfd(SSL *s, int fd); |
1229 | int SSL_set_wfd(SSL *s, int fd); | 1219 | int SSL_set_wfd(SSL *s, int fd); |
1230 | #ifndef OPENSSL_NO_BIO | ||
1231 | void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio); | 1220 | void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio); |
1232 | BIO * SSL_get_rbio(const SSL *s); | 1221 | BIO * SSL_get_rbio(const SSL *s); |
1233 | BIO * SSL_get_wbio(const SSL *s); | 1222 | BIO * SSL_get_wbio(const SSL *s); |
1234 | #endif | ||
1235 | int SSL_set_cipher_list(SSL *s, const char *str); | 1223 | int SSL_set_cipher_list(SSL *s, const char *str); |
1236 | void SSL_set_read_ahead(SSL *s, int yes); | 1224 | void SSL_set_read_ahead(SSL *s, int yes); |
1237 | int SSL_get_verify_mode(const SSL *s); | 1225 | int 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); |
1281 | unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s); | 1269 | unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s); |
1282 | int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses); | 1270 | int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses); |
1283 | #ifndef OPENSSL_NO_BIO | ||
1284 | int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses); | 1271 | int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses); |
1285 | #endif | ||
1286 | void SSL_SESSION_free(SSL_SESSION *ses); | 1272 | void SSL_SESSION_free(SSL_SESSION *ses); |
1287 | int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp); | 1273 | int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp); |
1288 | int SSL_set_session(SSL *to, SSL_SESSION *session); | 1274 | int SSL_set_session(SSL *to, SSL_SESSION *session); |