diff options
author | beck <> | 2017-01-23 04:55:27 +0000 |
---|---|---|
committer | beck <> | 2017-01-23 04:55:27 +0000 |
commit | c35f51566045be89c49b0a47e153fdb27ec20f8e (patch) | |
tree | 7b3e30aaa4ce396a0dcc28cc981628a669ff50d2 /src/lib/libssl/ssl_locl.h | |
parent | 0f157a9ac8d269cb234cff4f5cd07800027490ff (diff) | |
download | openbsd-c35f51566045be89c49b0a47e153fdb27ec20f8e.tar.gz openbsd-c35f51566045be89c49b0a47e153fdb27ec20f8e.tar.bz2 openbsd-c35f51566045be89c49b0a47e153fdb27ec20f8e.zip |
move the callbacks from ssl_st to internal
ok jsing@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 4d8659a493..60bb5597e8 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.154 2017/01/23 04:15:28 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.155 2017/01/23 04:55:27 beck 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 | * |
@@ -527,6 +527,37 @@ typedef struct ssl_internal_st { | |||
527 | /* Client list of supported protocols in wire format. */ | 527 | /* Client list of supported protocols in wire format. */ |
528 | unsigned char *alpn_client_proto_list; | 528 | unsigned char *alpn_client_proto_list; |
529 | unsigned int alpn_client_proto_list_len; | 529 | unsigned int alpn_client_proto_list_len; |
530 | |||
531 | /* XXX Callbacks */ | ||
532 | |||
533 | /* true when we are actually in SSL_accept() or SSL_connect() */ | ||
534 | int in_handshake; | ||
535 | int (*handshake_func)(SSL *); | ||
536 | /* callback that allows applications to peek at protocol messages */ | ||
537 | void (*msg_callback)(int write_p, int version, int content_type, | ||
538 | const void *buf, size_t len, SSL *ssl, void *arg); | ||
539 | void *msg_callback_arg; | ||
540 | |||
541 | /* Default generate session ID callback. */ | ||
542 | GEN_SESSION_CB generate_session_id; | ||
543 | |||
544 | int (*verify_callback)(int ok,X509_STORE_CTX *ctx); /* fail if callback returns 0 */ | ||
545 | |||
546 | void (*info_callback)(const SSL *ssl,int type,int val); /* optional informational callback */ | ||
547 | |||
548 | /* TLS extension debug callback */ | ||
549 | void (*tlsext_debug_cb)(SSL *s, int client_server, int type, | ||
550 | unsigned char *data, int len, void *arg); | ||
551 | void *tlsext_debug_arg; | ||
552 | |||
553 | /* TLS Session Ticket extension callback */ | ||
554 | tls_session_ticket_ext_cb_fn tls_session_ticket_ext_cb; | ||
555 | void *tls_session_ticket_ext_cb_arg; | ||
556 | |||
557 | /* TLS pre-shared secret session resumption */ | ||
558 | tls_session_secret_cb_fn tls_session_secret_cb; | ||
559 | void *tls_session_secret_cb_arg; | ||
560 | |||
530 | } SSL_INTERNAL; | 561 | } SSL_INTERNAL; |
531 | 562 | ||
532 | typedef struct ssl3_state_internal_st { | 563 | typedef struct ssl3_state_internal_st { |