summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl3.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl3.h')
-rw-r--r--src/lib/libssl/ssl3.h32
1 files changed, 1 insertions, 31 deletions
diff --git a/src/lib/libssl/ssl3.h b/src/lib/libssl/ssl3.h
index 112e627de0..9c2c41287a 100644
--- a/src/lib/libssl/ssl3.h
+++ b/src/lib/libssl/ssl3.h
@@ -322,7 +322,6 @@ extern "C" {
322#define SSL3_RT_ALERT 21 322#define SSL3_RT_ALERT 21
323#define SSL3_RT_HANDSHAKE 22 323#define SSL3_RT_HANDSHAKE 22
324#define SSL3_RT_APPLICATION_DATA 23 324#define SSL3_RT_APPLICATION_DATA 23
325#define TLS1_RT_HEARTBEAT 24
326 325
327#define SSL3_AL_WARNING 1 326#define SSL3_AL_WARNING 1
328#define SSL3_AL_FATAL 2 327#define SSL3_AL_FATAL 2
@@ -340,11 +339,6 @@ extern "C" {
340#define SSL3_AD_CERTIFICATE_UNKNOWN 46 339#define SSL3_AD_CERTIFICATE_UNKNOWN 46
341#define SSL3_AD_ILLEGAL_PARAMETER 47 /* fatal */ 340#define SSL3_AD_ILLEGAL_PARAMETER 47 /* fatal */
342 341
343#define TLS1_HB_REQUEST 1
344#define TLS1_HB_RESPONSE 2
345
346#ifndef OPENSSL_NO_SSL_INTERN
347
348typedef struct ssl3_record_st 342typedef struct ssl3_record_st
349 { 343 {
350/*r */ int type; /* type of record */ 344/*r */ int type; /* type of record */
@@ -366,8 +360,6 @@ typedef struct ssl3_buffer_st
366 int left; /* how many bytes left */ 360 int left; /* how many bytes left */
367 } SSL3_BUFFER; 361 } SSL3_BUFFER;
368 362
369#endif
370
371#define SSL3_CT_RSA_SIGN 1 363#define SSL3_CT_RSA_SIGN 1
372#define SSL3_CT_DSS_SIGN 2 364#define SSL3_CT_DSS_SIGN 2
373#define SSL3_CT_RSA_FIXED_DH 3 365#define SSL3_CT_RSA_FIXED_DH 3
@@ -387,7 +379,6 @@ typedef struct ssl3_buffer_st
387#define SSL3_FLAGS_POP_BUFFER 0x0004 379#define SSL3_FLAGS_POP_BUFFER 0x0004
388#define TLS1_FLAGS_TLS_PADDING_BUG 0x0008 380#define TLS1_FLAGS_TLS_PADDING_BUG 0x0008
389#define TLS1_FLAGS_SKIP_CERT_VERIFY 0x0010 381#define TLS1_FLAGS_SKIP_CERT_VERIFY 0x0010
390#define TLS1_FLAGS_KEEP_HANDSHAKE 0x0020
391 382
392/* SSL3_FLAGS_SGC_RESTART_DONE is set when we 383/* SSL3_FLAGS_SGC_RESTART_DONE is set when we
393 * restart a handshake because of MS SGC and so prevents us 384 * restart a handshake because of MS SGC and so prevents us
@@ -400,8 +391,6 @@ typedef struct ssl3_buffer_st
400 */ 391 */
401#define SSL3_FLAGS_SGC_RESTART_DONE 0x0040 392#define SSL3_FLAGS_SGC_RESTART_DONE 0x0040
402 393
403#ifndef OPENSSL_NO_SSL_INTERN
404
405typedef struct ssl3_state_st 394typedef struct ssl3_state_st
406 { 395 {
407 long flags; 396 long flags;
@@ -486,7 +475,7 @@ typedef struct ssl3_state_st
486 int finish_md_len; 475 int finish_md_len;
487 unsigned char peer_finish_md[EVP_MAX_MD_SIZE*2]; 476 unsigned char peer_finish_md[EVP_MAX_MD_SIZE*2];
488 int peer_finish_md_len; 477 int peer_finish_md_len;
489 478
490 unsigned long message_size; 479 unsigned long message_size;
491 int message_type; 480 int message_type;
492 481
@@ -534,23 +523,13 @@ typedef struct ssl3_state_st
534 unsigned char previous_server_finished[EVP_MAX_MD_SIZE]; 523 unsigned char previous_server_finished[EVP_MAX_MD_SIZE];
535 unsigned char previous_server_finished_len; 524 unsigned char previous_server_finished_len;
536 int send_connection_binding; /* TODOEKR */ 525 int send_connection_binding; /* TODOEKR */
537
538#ifndef OPENSSL_NO_NEXTPROTONEG
539 /* Set if we saw the Next Protocol Negotiation extension from our peer. */
540 int next_proto_neg_seen;
541#endif
542 } SSL3_STATE; 526 } SSL3_STATE;
543 527
544#endif
545 528
546/* SSLv3 */ 529/* SSLv3 */
547/*client */ 530/*client */
548/* extra state */ 531/* extra state */
549#define SSL3_ST_CW_FLUSH (0x100|SSL_ST_CONNECT) 532#define SSL3_ST_CW_FLUSH (0x100|SSL_ST_CONNECT)
550#ifndef OPENSSL_NO_SCTP
551#define DTLS1_SCTP_ST_CW_WRITE_SOCK (0x310|SSL_ST_CONNECT)
552#define DTLS1_SCTP_ST_CR_READ_SOCK (0x320|SSL_ST_CONNECT)
553#endif
554/* write to server */ 533/* write to server */
555#define SSL3_ST_CW_CLNT_HELLO_A (0x110|SSL_ST_CONNECT) 534#define SSL3_ST_CW_CLNT_HELLO_A (0x110|SSL_ST_CONNECT)
556#define SSL3_ST_CW_CLNT_HELLO_B (0x111|SSL_ST_CONNECT) 535#define SSL3_ST_CW_CLNT_HELLO_B (0x111|SSL_ST_CONNECT)
@@ -578,8 +557,6 @@ typedef struct ssl3_state_st
578#define SSL3_ST_CW_CERT_VRFY_B (0x191|SSL_ST_CONNECT) 557#define SSL3_ST_CW_CERT_VRFY_B (0x191|SSL_ST_CONNECT)
579#define SSL3_ST_CW_CHANGE_A (0x1A0|SSL_ST_CONNECT) 558#define SSL3_ST_CW_CHANGE_A (0x1A0|SSL_ST_CONNECT)
580#define SSL3_ST_CW_CHANGE_B (0x1A1|SSL_ST_CONNECT) 559#define SSL3_ST_CW_CHANGE_B (0x1A1|SSL_ST_CONNECT)
581#define SSL3_ST_CW_NEXT_PROTO_A (0x200|SSL_ST_CONNECT)
582#define SSL3_ST_CW_NEXT_PROTO_B (0x201|SSL_ST_CONNECT)
583#define SSL3_ST_CW_FINISHED_A (0x1B0|SSL_ST_CONNECT) 560#define SSL3_ST_CW_FINISHED_A (0x1B0|SSL_ST_CONNECT)
584#define SSL3_ST_CW_FINISHED_B (0x1B1|SSL_ST_CONNECT) 561#define SSL3_ST_CW_FINISHED_B (0x1B1|SSL_ST_CONNECT)
585/* read from server */ 562/* read from server */
@@ -595,10 +572,6 @@ typedef struct ssl3_state_st
595/* server */ 572/* server */
596/* extra state */ 573/* extra state */
597#define SSL3_ST_SW_FLUSH (0x100|SSL_ST_ACCEPT) 574#define SSL3_ST_SW_FLUSH (0x100|SSL_ST_ACCEPT)
598#ifndef OPENSSL_NO_SCTP
599#define DTLS1_SCTP_ST_SW_WRITE_SOCK (0x310|SSL_ST_ACCEPT)
600#define DTLS1_SCTP_ST_SR_READ_SOCK (0x320|SSL_ST_ACCEPT)
601#endif
602/* read from client */ 575/* read from client */
603/* Do not change the number values, they do matter */ 576/* Do not change the number values, they do matter */
604#define SSL3_ST_SR_CLNT_HELLO_A (0x110|SSL_ST_ACCEPT) 577#define SSL3_ST_SR_CLNT_HELLO_A (0x110|SSL_ST_ACCEPT)
@@ -629,8 +602,6 @@ typedef struct ssl3_state_st
629#define SSL3_ST_SR_CERT_VRFY_B (0x1A1|SSL_ST_ACCEPT) 602#define SSL3_ST_SR_CERT_VRFY_B (0x1A1|SSL_ST_ACCEPT)
630#define SSL3_ST_SR_CHANGE_A (0x1B0|SSL_ST_ACCEPT) 603#define SSL3_ST_SR_CHANGE_A (0x1B0|SSL_ST_ACCEPT)
631#define SSL3_ST_SR_CHANGE_B (0x1B1|SSL_ST_ACCEPT) 604#define SSL3_ST_SR_CHANGE_B (0x1B1|SSL_ST_ACCEPT)
632#define SSL3_ST_SR_NEXT_PROTO_A (0x210|SSL_ST_ACCEPT)
633#define SSL3_ST_SR_NEXT_PROTO_B (0x211|SSL_ST_ACCEPT)
634#define SSL3_ST_SR_FINISHED_A (0x1C0|SSL_ST_ACCEPT) 605#define SSL3_ST_SR_FINISHED_A (0x1C0|SSL_ST_ACCEPT)
635#define SSL3_ST_SR_FINISHED_B (0x1C1|SSL_ST_ACCEPT) 606#define SSL3_ST_SR_FINISHED_B (0x1C1|SSL_ST_ACCEPT)
636/* write to client */ 607/* write to client */
@@ -655,7 +626,6 @@ typedef struct ssl3_state_st
655#define SSL3_MT_CLIENT_KEY_EXCHANGE 16 626#define SSL3_MT_CLIENT_KEY_EXCHANGE 16
656#define SSL3_MT_FINISHED 20 627#define SSL3_MT_FINISHED 20
657#define SSL3_MT_CERTIFICATE_STATUS 22 628#define SSL3_MT_CERTIFICATE_STATUS 22
658#define SSL3_MT_NEXT_PROTO 67
659#define DTLS1_MT_HELLO_VERIFY_REQUEST 3 629#define DTLS1_MT_HELLO_VERIFY_REQUEST 3
660 630
661 631