diff options
Diffstat (limited to 'src/lib/libssl/ssl.h')
-rw-r--r-- | src/lib/libssl/ssl.h | 34 |
1 files changed, 7 insertions, 27 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 87237fcc9b..037f46c400 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.117 2017/01/23 10:22:06 jsing Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.118 2017/01/23 13:36:13 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 | * |
@@ -396,36 +396,16 @@ struct ssl_cipher_st { | |||
396 | 396 | ||
397 | 397 | ||
398 | /* Used to hold functions for SSLv3/TLSv1 functions */ | 398 | /* Used to hold functions for SSLv3/TLSv1 functions */ |
399 | struct ssl_method_internal_st; | ||
400 | |||
399 | struct ssl_method_st { | 401 | struct ssl_method_st { |
400 | int version; | ||
401 | uint16_t min_version; | ||
402 | uint16_t max_version; | ||
403 | int (*ssl_new)(SSL *s); | ||
404 | void (*ssl_clear)(SSL *s); | ||
405 | void (*ssl_free)(SSL *s); | ||
406 | int (*ssl_accept)(SSL *s); | ||
407 | int (*ssl_connect)(SSL *s); | ||
408 | int (*ssl_read)(SSL *s, void *buf, int len); | ||
409 | int (*ssl_peek)(SSL *s, void *buf, int len); | ||
410 | int (*ssl_write)(SSL *s, const void *buf, int len); | ||
411 | int (*ssl_shutdown)(SSL *s); | ||
412 | int (*ssl_renegotiate)(SSL *s); | ||
413 | int (*ssl_renegotiate_check)(SSL *s); | ||
414 | long (*ssl_get_message)(SSL *s, int st1, int stn, int mt, | ||
415 | long max, int *ok); | ||
416 | int (*ssl_read_bytes)(SSL *s, int type, unsigned char *buf, | ||
417 | int len, int peek); | ||
418 | int (*ssl_write_bytes)(SSL *s, int type, const void *buf_, int len); | ||
419 | int (*ssl_dispatch_alert)(SSL *s); | 402 | int (*ssl_dispatch_alert)(SSL *s); |
420 | const SSL_CIPHER *(*get_cipher_by_char)(const unsigned char *ptr); | ||
421 | int (*put_cipher_by_char)(const SSL_CIPHER *cipher, unsigned char *ptr); | ||
422 | int (*ssl_pending)(const SSL *s); | ||
423 | int (*num_ciphers)(void); | 403 | int (*num_ciphers)(void); |
424 | const SSL_CIPHER *(*get_cipher)(unsigned ncipher); | 404 | const SSL_CIPHER *(*get_cipher)(unsigned ncipher); |
425 | const struct ssl_method_st *(*get_ssl_method)(int version); | 405 | const SSL_CIPHER *(*get_cipher_by_char)(const unsigned char *ptr); |
426 | long (*get_timeout)(void); | 406 | int (*put_cipher_by_char)(const SSL_CIPHER *cipher, unsigned char *ptr); |
427 | struct ssl3_enc_method *ssl3_enc; /* Extra SSLv3/TLS stuff */ | 407 | |
428 | int (*ssl_version)(void); | 408 | const struct ssl_method_internal_st *internal; |
429 | }; | 409 | }; |
430 | 410 | ||
431 | /* Lets make this into an ASN.1 type structure as follows | 411 | /* Lets make this into an ASN.1 type structure as follows |