|
Lines 485-491
Link Here
|
| 485 |
|
485 |
|
| 486 |
#define SSL_OP_MICROSOFT_SESS_ID_BUG 0x00000001L |
486 |
#define SSL_OP_MICROSOFT_SESS_ID_BUG 0x00000001L |
| 487 |
#define SSL_OP_NETSCAPE_CHALLENGE_BUG 0x00000002L |
487 |
#define SSL_OP_NETSCAPE_CHALLENGE_BUG 0x00000002L |
| 488 |
#define SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG 0x00000008L /* can break some security expectations */ |
488 |
/* Allow initial connection to servers that don't support RI */ |
|
|
489 |
#define SSL_OP_LEGACY_SERVER_CONNECT 0x00000004L |
| 490 |
#define SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG 0x00000008L |
| 489 |
#define SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG 0x00000010L |
491 |
#define SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG 0x00000010L |
| 490 |
#define SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER 0x00000020L |
492 |
#define SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER 0x00000020L |
| 491 |
#define SSL_OP_MSIE_SSLV2_RSA_PADDING 0x00000040L /* no effect since 0.9.7h and 0.9.8b */ |
493 |
#define SSL_OP_MSIE_SSLV2_RSA_PADDING 0x00000040L /* no effect since 0.9.7h and 0.9.8b */ |
|
Lines 515-520
Link Here
|
| 515 |
|
517 |
|
| 516 |
/* As server, disallow session resumption on renegotiation */ |
518 |
/* As server, disallow session resumption on renegotiation */ |
| 517 |
#define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION 0x00010000L |
519 |
#define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION 0x00010000L |
|
|
520 |
/* Permit unsafe legacy renegotiation */ |
| 521 |
#define SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION 0x00040000L |
| 518 |
/* If set, always create a new key when using tmp_ecdh parameters */ |
522 |
/* If set, always create a new key when using tmp_ecdh parameters */ |
| 519 |
#define SSL_OP_SINGLE_ECDH_USE 0x00080000L |
523 |
#define SSL_OP_SINGLE_ECDH_USE 0x00080000L |
| 520 |
/* If set, always create a new key when using tmp_dh parameters */ |
524 |
/* If set, always create a new key when using tmp_dh parameters */ |
|
Lines 563-579
Link Here
|
| 563 |
|
567 |
|
| 564 |
#define SSL_CTX_set_options(ctx,op) \ |
568 |
#define SSL_CTX_set_options(ctx,op) \ |
| 565 |
SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,(op),NULL) |
569 |
SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,(op),NULL) |
|
|
570 |
#define SSL_CTX_clear_options(ctx,op) \ |
| 571 |
SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_OPTIONS,(op),NULL) |
| 566 |
#define SSL_CTX_get_options(ctx) \ |
572 |
#define SSL_CTX_get_options(ctx) \ |
| 567 |
SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,0,NULL) |
573 |
SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,0,NULL) |
| 568 |
#define SSL_set_options(ssl,op) \ |
574 |
#define SSL_set_options(ssl,op) \ |
| 569 |
SSL_ctrl((ssl),SSL_CTRL_OPTIONS,(op),NULL) |
575 |
SSL_ctrl((ssl),SSL_CTRL_OPTIONS,(op),NULL) |
|
|
576 |
#define SSL_clear_options(ssl,op) \ |
| 577 |
SSL_ctrl((ssl),SSL_CTRL_CLEAR_OPTIONS,(op),NULL) |
| 570 |
#define SSL_get_options(ssl) \ |
578 |
#define SSL_get_options(ssl) \ |
| 571 |
SSL_ctrl((ssl),SSL_CTRL_OPTIONS,0,NULL) |
579 |
SSL_ctrl((ssl),SSL_CTRL_OPTIONS,0,NULL) |
| 572 |
|
580 |
|
| 573 |
#define SSL_CTX_set_mode(ctx,op) \ |
581 |
#define SSL_CTX_set_mode(ctx,op) \ |
| 574 |
SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL) |
582 |
SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL) |
|
|
583 |
#define SSL_CTX_clear_mode(ctx,op) \ |
| 584 |
SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL) |
| 575 |
#define SSL_CTX_get_mode(ctx) \ |
585 |
#define SSL_CTX_get_mode(ctx) \ |
| 576 |
SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL) |
586 |
SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL) |
|
|
587 |
#define SSL_clear_mode(ssl,op) \ |
| 588 |
SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL) |
| 577 |
#define SSL_set_mode(ssl,op) \ |
589 |
#define SSL_set_mode(ssl,op) \ |
| 578 |
SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL) |
590 |
SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL) |
| 579 |
#define SSL_get_mode(ssl) \ |
591 |
#define SSL_get_mode(ssl) \ |
|
Lines 581-586
Link Here
|
| 581 |
#define SSL_set_mtu(ssl, mtu) \ |
593 |
#define SSL_set_mtu(ssl, mtu) \ |
| 582 |
SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL) |
594 |
SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL) |
| 583 |
|
595 |
|
|
|
596 |
#define SSL_get_secure_renegotiation_support(ssl) \ |
| 597 |
SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL) |
| 584 |
|
598 |
|
| 585 |
void SSL_CTX_set_msg_callback(SSL_CTX *ctx, void (*cb)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg)); |
599 |
void SSL_CTX_set_msg_callback(SSL_CTX *ctx, void (*cb)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg)); |
| 586 |
void SSL_set_msg_callback(SSL *ssl, void (*cb)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg)); |
600 |
void SSL_set_msg_callback(SSL *ssl, void (*cb)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg)); |
|
Lines 1271-1276
Link Here
|
| 1271 |
#define SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB 72 |
1285 |
#define SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB 72 |
| 1272 |
#endif |
1286 |
#endif |
| 1273 |
|
1287 |
|
|
|
1288 |
#define DTLS_CTRL_GET_TIMEOUT 73 |
| 1289 |
#define DTLS_CTRL_HANDLE_TIMEOUT 74 |
| 1290 |
#define DTLS_CTRL_LISTEN 75 |
| 1291 |
|
| 1292 |
#define SSL_CTRL_GET_RI_SUPPORT 76 |
| 1293 |
#define SSL_CTRL_CLEAR_OPTIONS 77 |
| 1294 |
#define SSL_CTRL_CLEAR_MODE 78 |
| 1295 |
|
| 1296 |
#define DTLSv1_get_timeout(ssl, arg) \ |
| 1297 |
SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, (void *)arg) |
| 1298 |
#define DTLSv1_handle_timeout(ssl) \ |
| 1299 |
SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,0, NULL) |
| 1300 |
#define DTLSv1_listen(ssl, peer) \ |
| 1301 |
SSL_ctrl(ssl,DTLS_CTRL_LISTEN,0, (void *)peer) |
| 1302 |
|
| 1274 |
#define SSL_session_reused(ssl) \ |
1303 |
#define SSL_session_reused(ssl) \ |
| 1275 |
SSL_ctrl((ssl),SSL_CTRL_GET_SESSION_REUSED,0,NULL) |
1304 |
SSL_ctrl((ssl),SSL_CTRL_GET_SESSION_REUSED,0,NULL) |
| 1276 |
#define SSL_num_renegotiations(ssl) \ |
1305 |
#define SSL_num_renegotiations(ssl) \ |
|
Lines 1521-1527
Link Here
|
| 1521 |
|
1550 |
|
| 1522 |
int SSL_library_init(void ); |
1551 |
int SSL_library_init(void ); |
| 1523 |
|
1552 |
|
| 1524 |
char *SSL_CIPHER_description(SSL_CIPHER *,char *buf,int size); |
1553 |
char *SSL_CIPHER_description(const SSL_CIPHER *,char *buf,int size); |
| 1525 |
STACK_OF(X509_NAME) *SSL_dup_CA_list(STACK_OF(X509_NAME) *sk); |
1554 |
STACK_OF(X509_NAME) *SSL_dup_CA_list(STACK_OF(X509_NAME) *sk); |
| 1526 |
|
1555 |
|
| 1527 |
SSL *SSL_dup(SSL *ssl); |
1556 |
SSL *SSL_dup(SSL *ssl); |
|
Lines 1651-1656
Link Here
|
| 1651 |
#define SSL_F_DO_DTLS1_WRITE 245 |
1680 |
#define SSL_F_DO_DTLS1_WRITE 245 |
| 1652 |
#define SSL_F_DO_SSL3_WRITE 104 |
1681 |
#define SSL_F_DO_SSL3_WRITE 104 |
| 1653 |
#define SSL_F_DTLS1_ACCEPT 246 |
1682 |
#define SSL_F_DTLS1_ACCEPT 246 |
|
|
1683 |
#define SSL_F_DTLS1_ADD_CERT_TO_BUF 280 |
| 1654 |
#define SSL_F_DTLS1_BUFFER_RECORD 247 |
1684 |
#define SSL_F_DTLS1_BUFFER_RECORD 247 |
| 1655 |
#define SSL_F_DTLS1_CLIENT_HELLO 248 |
1685 |
#define SSL_F_DTLS1_CLIENT_HELLO 248 |
| 1656 |
#define SSL_F_DTLS1_CONNECT 249 |
1686 |
#define SSL_F_DTLS1_CONNECT 249 |
|
Lines 1659-1664
Link Here
|
| 1659 |
#define SSL_F_DTLS1_GET_MESSAGE 252 |
1689 |
#define SSL_F_DTLS1_GET_MESSAGE 252 |
| 1660 |
#define SSL_F_DTLS1_GET_MESSAGE_FRAGMENT 253 |
1690 |
#define SSL_F_DTLS1_GET_MESSAGE_FRAGMENT 253 |
| 1661 |
#define SSL_F_DTLS1_GET_RECORD 254 |
1691 |
#define SSL_F_DTLS1_GET_RECORD 254 |
|
|
1692 |
#define SSL_F_DTLS1_HANDLE_TIMEOUT 282 |
| 1662 |
#define SSL_F_DTLS1_OUTPUT_CERT_CHAIN 255 |
1693 |
#define SSL_F_DTLS1_OUTPUT_CERT_CHAIN 255 |
| 1663 |
#define SSL_F_DTLS1_PREPROCESS_FRAGMENT 277 |
1694 |
#define SSL_F_DTLS1_PREPROCESS_FRAGMENT 277 |
| 1664 |
#define SSL_F_DTLS1_PROCESS_OUT_OF_SEQ_MESSAGE 256 |
1695 |
#define SSL_F_DTLS1_PROCESS_OUT_OF_SEQ_MESSAGE 256 |
|
Lines 1704-1709
Link Here
|
| 1704 |
#define SSL_F_SSL2_SET_CERTIFICATE 126 |
1735 |
#define SSL_F_SSL2_SET_CERTIFICATE 126 |
| 1705 |
#define SSL_F_SSL2_WRITE 127 |
1736 |
#define SSL_F_SSL2_WRITE 127 |
| 1706 |
#define SSL_F_SSL3_ACCEPT 128 |
1737 |
#define SSL_F_SSL3_ACCEPT 128 |
|
|
1738 |
#define SSL_F_SSL3_ADD_CERT_TO_BUF 281 |
| 1707 |
#define SSL_F_SSL3_CALLBACK_CTRL 233 |
1739 |
#define SSL_F_SSL3_CALLBACK_CTRL 233 |
| 1708 |
#define SSL_F_SSL3_CHANGE_CIPHER_STATE 129 |
1740 |
#define SSL_F_SSL3_CHANGE_CIPHER_STATE 129 |
| 1709 |
#define SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM 130 |
1741 |
#define SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM 130 |
|
Lines 1744-1752
Link Here
|
| 1744 |
#define SSL_F_SSL3_SETUP_KEY_BLOCK 157 |
1776 |
#define SSL_F_SSL3_SETUP_KEY_BLOCK 157 |
| 1745 |
#define SSL_F_SSL3_WRITE_BYTES 158 |
1777 |
#define SSL_F_SSL3_WRITE_BYTES 158 |
| 1746 |
#define SSL_F_SSL3_WRITE_PENDING 159 |
1778 |
#define SSL_F_SSL3_WRITE_PENDING 159 |
|
|
1779 |
#define SSL_F_SSL_ADD_CLIENTHELLO_RENEGOTIATE_EXT 285 |
| 1747 |
#define SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT 272 |
1780 |
#define SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT 272 |
| 1748 |
#define SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK 215 |
1781 |
#define SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK 215 |
| 1749 |
#define SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK 216 |
1782 |
#define SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK 216 |
|
|
1783 |
#define SSL_F_SSL_ADD_SERVERHELLO_RENEGOTIATE_EXT 286 |
| 1750 |
#define SSL_F_SSL_ADD_SERVERHELLO_TLSEXT 273 |
1784 |
#define SSL_F_SSL_ADD_SERVERHELLO_TLSEXT 273 |
| 1751 |
#define SSL_F_SSL_BAD_METHOD 160 |
1785 |
#define SSL_F_SSL_BAD_METHOD 160 |
| 1752 |
#define SSL_F_SSL_BYTES_TO_CIPHER_LIST 161 |
1786 |
#define SSL_F_SSL_BYTES_TO_CIPHER_LIST 161 |
|
Lines 1788-1793
Link Here
|
| 1788 |
#define SSL_F_SSL_INIT_WBIO_BUFFER 184 |
1822 |
#define SSL_F_SSL_INIT_WBIO_BUFFER 184 |
| 1789 |
#define SSL_F_SSL_LOAD_CLIENT_CA_FILE 185 |
1823 |
#define SSL_F_SSL_LOAD_CLIENT_CA_FILE 185 |
| 1790 |
#define SSL_F_SSL_NEW 186 |
1824 |
#define SSL_F_SSL_NEW 186 |
|
|
1825 |
#define SSL_F_SSL_PARSE_CLIENTHELLO_RENEGOTIATE_EXT 287 |
| 1826 |
#define SSL_F_SSL_PARSE_CLIENTHELLO_TLSEXT 290 |
| 1827 |
#define SSL_F_SSL_PARSE_SERVERHELLO_RENEGOTIATE_EXT 289 |
| 1828 |
#define SSL_F_SSL_PARSE_SERVERHELLO_TLSEXT 291 |
| 1791 |
#define SSL_F_SSL_PEEK 270 |
1829 |
#define SSL_F_SSL_PEEK 270 |
| 1792 |
#define SSL_F_SSL_PREPARE_CLIENTHELLO_TLSEXT 275 |
1830 |
#define SSL_F_SSL_PREPARE_CLIENTHELLO_TLSEXT 275 |
| 1793 |
#define SSL_F_SSL_PREPARE_SERVERHELLO_TLSEXT 276 |
1831 |
#define SSL_F_SSL_PREPARE_SERVERHELLO_TLSEXT 276 |
|
Lines 1887-1892
Link Here
|
| 1887 |
#define SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC 281 |
1925 |
#define SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC 281 |
| 1888 |
#define SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG 148 |
1926 |
#define SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG 148 |
| 1889 |
#define SSL_R_DIGEST_CHECK_FAILED 149 |
1927 |
#define SSL_R_DIGEST_CHECK_FAILED 149 |
|
|
1928 |
#define SSL_R_DTLS_MESSAGE_TOO_BIG 318 |
| 1890 |
#define SSL_R_DUPLICATE_COMPRESSION_ID 309 |
1929 |
#define SSL_R_DUPLICATE_COMPRESSION_ID 309 |
| 1891 |
#define SSL_R_ECGROUP_TOO_LARGE_FOR_CIPHER 310 |
1930 |
#define SSL_R_ECGROUP_TOO_LARGE_FOR_CIPHER 310 |
| 1892 |
#define SSL_R_ENCRYPTED_LENGTH_TOO_LONG 150 |
1931 |
#define SSL_R_ENCRYPTED_LENGTH_TOO_LONG 150 |
|
Lines 1954-1960
Link Here
|
| 1954 |
#define SSL_R_NO_PRIVATE_KEY_ASSIGNED 190 |
1993 |
#define SSL_R_NO_PRIVATE_KEY_ASSIGNED 190 |
| 1955 |
#define SSL_R_NO_PROTOCOLS_AVAILABLE 191 |
1994 |
#define SSL_R_NO_PROTOCOLS_AVAILABLE 191 |
| 1956 |
#define SSL_R_NO_PUBLICKEY 192 |
1995 |
#define SSL_R_NO_PUBLICKEY 192 |
| 1957 |
#define SSL_R_NO_RENEGOTIATION 318 |
1996 |
#define SSL_R_NO_RENEGOTIATION 319 |
| 1958 |
#define SSL_R_NO_SHARED_CIPHER 193 |
1997 |
#define SSL_R_NO_SHARED_CIPHER 193 |
| 1959 |
#define SSL_R_NO_VERIFY_CALLBACK 194 |
1998 |
#define SSL_R_NO_VERIFY_CALLBACK 194 |
| 1960 |
#define SSL_R_NULL_SSL_CTX 195 |
1999 |
#define SSL_R_NULL_SSL_CTX 195 |
|
Lines 1982-1991
Link Here
|
| 1982 |
#define SSL_R_RECORD_LENGTH_MISMATCH 213 |
2021 |
#define SSL_R_RECORD_LENGTH_MISMATCH 213 |
| 1983 |
#define SSL_R_RECORD_TOO_LARGE 214 |
2022 |
#define SSL_R_RECORD_TOO_LARGE 214 |
| 1984 |
#define SSL_R_RECORD_TOO_SMALL 298 |
2023 |
#define SSL_R_RECORD_TOO_SMALL 298 |
|
|
2024 |
#define SSL_R_RENEGOTIATE_EXT_TOO_LONG 320 |
| 2025 |
#define SSL_R_RENEGOTIATION_ENCODING_ERR 321 |
| 2026 |
#define SSL_R_RENEGOTIATION_MISMATCH 322 |
| 1985 |
#define SSL_R_REQUIRED_CIPHER_MISSING 215 |
2027 |
#define SSL_R_REQUIRED_CIPHER_MISSING 215 |
| 1986 |
#define SSL_R_REUSE_CERT_LENGTH_NOT_ZERO 216 |
2028 |
#define SSL_R_REUSE_CERT_LENGTH_NOT_ZERO 216 |
| 1987 |
#define SSL_R_REUSE_CERT_TYPE_NOT_ZERO 217 |
2029 |
#define SSL_R_REUSE_CERT_TYPE_NOT_ZERO 217 |
| 1988 |
#define SSL_R_REUSE_CIPHER_LIST_NOT_ZERO 218 |
2030 |
#define SSL_R_REUSE_CIPHER_LIST_NOT_ZERO 218 |
|
|
2031 |
#define SSL_R_SCSV_RECEIVED_WHEN_RENEGOTIATING 324 |
| 1989 |
#define SSL_R_SERVERHELLO_TLSEXT 224 |
2032 |
#define SSL_R_SERVERHELLO_TLSEXT 224 |
| 1990 |
#define SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED 277 |
2033 |
#define SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED 277 |
| 1991 |
#define SSL_R_SHORT_READ 219 |
2034 |
#define SSL_R_SHORT_READ 219 |
|
Lines 2055-2060
Link Here
|
| 2055 |
#define SSL_R_UNKNOWN_REMOTE_ERROR_TYPE 253 |
2098 |
#define SSL_R_UNKNOWN_REMOTE_ERROR_TYPE 253 |
| 2056 |
#define SSL_R_UNKNOWN_SSL_VERSION 254 |
2099 |
#define SSL_R_UNKNOWN_SSL_VERSION 254 |
| 2057 |
#define SSL_R_UNKNOWN_STATE 255 |
2100 |
#define SSL_R_UNKNOWN_STATE 255 |
|
|
2101 |
#define SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED 323 |
| 2058 |
#define SSL_R_UNSUPPORTED_CIPHER 256 |
2102 |
#define SSL_R_UNSUPPORTED_CIPHER 256 |
| 2059 |
#define SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM 257 |
2103 |
#define SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM 257 |
| 2060 |
#define SSL_R_UNSUPPORTED_ELLIPTIC_CURVE 315 |
2104 |
#define SSL_R_UNSUPPORTED_ELLIPTIC_CURVE 315 |