OLD | NEW |
1 /* ssl/ssl.h */ | 1 /* ssl/ssl.h */ |
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 * |
5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
8 * | 8 * |
9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1674 #define SSL_need_tmp_RSA(ssl) \ | 1674 #define SSL_need_tmp_RSA(ssl) \ |
1675 SSL_ctrl(ssl,SSL_CTRL_NEED_TMP_RSA,0,NULL) | 1675 SSL_ctrl(ssl,SSL_CTRL_NEED_TMP_RSA,0,NULL) |
1676 #define SSL_set_tmp_rsa(ssl,rsa) \ | 1676 #define SSL_set_tmp_rsa(ssl,rsa) \ |
1677 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_RSA,0,(char *)rsa) | 1677 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_RSA,0,(char *)rsa) |
1678 #define SSL_set_tmp_dh(ssl,dh) \ | 1678 #define SSL_set_tmp_dh(ssl,dh) \ |
1679 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)dh) | 1679 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)dh) |
1680 #define SSL_set_tmp_ecdh(ssl,ecdh) \ | 1680 #define SSL_set_tmp_ecdh(ssl,ecdh) \ |
1681 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh) | 1681 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh) |
1682 | 1682 |
1683 /* SSL_enable_tls_channel_id either configures a TLS server to accept TLS client | 1683 /* SSL_enable_tls_channel_id either configures a TLS server to accept TLS client |
1684 * IDs from clients, or configure a client to send TLS client IDs to server. | 1684 * IDs from clients, or configures a client to send TLS client IDs to server. |
1685 * Returns 1 on success. */ | 1685 * Returns 1 on success. */ |
1686 #define SSL_enable_tls_channel_id(s) \ | 1686 #define SSL_enable_tls_channel_id(ssl) \ |
1687 » SSL_ctrl(s,SSL_CTRL_CHANNEL_ID,0,NULL) | 1687 » SSL_ctrl(ssl,SSL_CTRL_CHANNEL_ID,0,NULL) |
1688 /* SSL_set1_tls_channel_id configures a TLS client to send a TLS Channel ID to | 1688 /* SSL_set1_tls_channel_id configures a TLS client to send a TLS Channel ID to |
1689 * compatible servers. private_key must be a P-256 EVP_PKEY*. Returns 1 on | 1689 * compatible servers. private_key must be a P-256 EVP_PKEY*. Returns 1 on |
1690 * success. */ | 1690 * success. */ |
1691 #define SSL_set1_tls_channel_id(s, private_key) \ | 1691 #define SSL_set1_tls_channel_id(s, private_key) \ |
1692 SSL_ctrl(s,SSL_CTRL_SET_CHANNEL_ID,0,(void*)private_key) | 1692 SSL_ctrl(s,SSL_CTRL_SET_CHANNEL_ID,0,(void*)private_key) |
1693 #define SSL_CTX_set1_tls_channel_id(ctx, private_key) \ | 1693 #define SSL_CTX_set1_tls_channel_id(ctx, private_key) \ |
1694 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHANNEL_ID,0,(void*)private_key) | 1694 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHANNEL_ID,0,(void*)private_key) |
1695 /* SSL_get_tls_channel_id gets the client's TLS Channel ID from a server SSL* | 1695 /* SSL_get_tls_channel_id gets the client's TLS Channel ID from a server SSL* |
1696 * and copies up to the first |channel_id_len| bytes into |channel_id|. The | 1696 * and copies up to the first |channel_id_len| bytes into |channel_id|. The |
1697 * Channel ID consists of the client's P-256 public key as an (x,y) pair where | 1697 * Channel ID consists of the client's P-256 public key as an (x,y) pair where |
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2647 #define SSL_R_WRONG_SIGNATURE_TYPE 370 | 2647 #define SSL_R_WRONG_SIGNATURE_TYPE 370 |
2648 #define SSL_R_WRONG_SSL_VERSION 266 | 2648 #define SSL_R_WRONG_SSL_VERSION 266 |
2649 #define SSL_R_WRONG_VERSION_NUMBER 267 | 2649 #define SSL_R_WRONG_VERSION_NUMBER 267 |
2650 #define SSL_R_X509_LIB 268 | 2650 #define SSL_R_X509_LIB 268 |
2651 #define SSL_R_X509_VERIFICATION_SETUP_PROBLEMS 269 | 2651 #define SSL_R_X509_VERIFICATION_SETUP_PROBLEMS 269 |
2652 | 2652 |
2653 #ifdef __cplusplus | 2653 #ifdef __cplusplus |
2654 } | 2654 } |
2655 #endif | 2655 #endif |
2656 #endif | 2656 #endif |
OLD | NEW |