• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/include/openssl/

Lines Matching refs:SSL

5  * This package is an SSL implementation written
7 * The implementation was written so as to conform with Netscapes SSL.
12 * lhash, DES, etc., code; not just the SSL code. The SSL documentation
366 typedef struct ssl_st SSL;
373 int (*ssl_new)(SSL *s);
374 void (*ssl_clear)(SSL *s);
375 void (*ssl_free)(SSL *s);
376 int (*ssl_accept)(SSL *s);
377 int (*ssl_connect)(SSL *s);
378 int (*ssl_read)(SSL *s,void *buf,int len);
379 int (*ssl_peek)(SSL *s,void *buf,int len);
380 int (*ssl_write)(SSL *s,const void *buf,int len);
381 int (*ssl_shutdown)(SSL *s);
382 int (*ssl_renegotiate)(SSL *s);
383 int (*ssl_renegotiate_check)(SSL *s);
384 long (*ssl_get_message)(SSL *s, int st1, int stn, int mt, long
386 int (*ssl_read_bytes)(SSL *s, int type, unsigned char *buf, int len,
388 int (*ssl_write_bytes)(SSL *s, int type, const void *buf_, int len);
389 int (*ssl_dispatch_alert)(SSL *s);
390 long (*ssl_ctrl)(SSL *s,int cmd,long larg,void *parg);
394 int (*ssl_pending)(const SSL *s);
401 long (*ssl_callback_ctrl)(SSL *s, int cb_id, void (*fp)(void));
408 * SSLversion INTEGER, -- SSL version number
493 /* Disable SSL 3.0/TLS 1.0 CBC vulnerability workaround that was added
495 * the workaround is not needed. Unfortunately some broken SSL/TLS
554 /* Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value,
578 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));
579 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));
593 /* This callback type is used inside SSL_CTX, SSL, and in the functions that set
594 * them. It is used to override the generation of SSL/TLS session IDs in a
597 * the SSL handshake will fail with an error - callbacks can do this using the
606 typedef int (*GEN_SESSION_CB)(const SSL *ssl, unsigned char *id,
665 int sess_connect; /* SSL new conn - started */
666 int sess_connect_renegotiate;/* SSL reneg - requested */
667 int sess_connect_good; /* SSL new conne/reneg - finished */
668 int sess_accept; /* SSL new accept - started */
669 int sess_accept_renegotiate;/* SSL reneg - requested */
670 int sess_accept_good; /* SSL accept/reneg - finished */
698 int (*client_cert_cb)(SSL *ssl, X509 **x509, EVP_PKEY **pkey);
701 int (*app_gen_cookie_cb)(SSL *ssl, unsigned char *cookie,
705 int (*app_verify_cookie_cb)(SSL *ssl, unsigned char *cookie,
718 /* Default values used when no per-SSL value is defined follow */
720 void (*info_callback)(const SSL *ssl,int type,int val); /* used if SSL's info_callback is NULL */
726 /* Default values to use in SSL structures follow (these are copied by SSL_new) */
736 void (*msg_callback)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg);
742 int (*default_verify_callback)(int ok,X509_STORE_CTX *ctx); /* called 'verify_callback' in the SSL */
800 void SSL_CTX_set_info_callback(SSL_CTX *ctx, void (*cb)(const SSL *ssl,int type,int val));
801 void (*SSL_CTX_get_info_callback(SSL_CTX *ctx))(const SSL *ssl,int type,int val);
802 void SSL_CTX_set_client_cert_cb(SSL_CTX *ctx, int (*client_cert_cb)(SSL *ssl, X509 **x509, EVP_PKEY **pkey));
803 int (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx))(SSL *ssl, X509 **x509, EVP_PKEY **pkey);
804 void SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx, int (*app_gen_cookie_cb)(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len));
805 void SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx, int (*app_verify_cookie_cb)(SSL *ssl, unsigned char *cookie, unsigned int cookie_len));
850 int (*handshake_func)(SSL *);
891 void (*msg_callback)(int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg);
948 void (*info_callback)(const SSL *ssl,int type,int val); /* optional informational callback */
1001 * used to indicate where we are up to in the SSL connection establishment.
1047 size_t SSL_get_finished(const SSL *s, void *buf, size_t count);
1048 size_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count);
1226 int SSL_want(const SSL *s);
1227 int SSL_clear(SSL *s);
1231 SSL_CIPHER *SSL_get_current_cipher(const SSL *s);
1236 int SSL_get_fd(const SSL *s);
1237 int SSL_get_rfd(const SSL *s);
1238 int SSL_get_wfd(const SSL *s);
1239 const char * SSL_get_cipher_list(const SSL *s,int n);
1240 char * SSL_get_shared_ciphers(const SSL *s, char *buf, int len);
1241 int SSL_get_read_ahead(const SSL * s);
1242 int SSL_pending(const SSL *s);
1244 int SSL_set_fd(SSL *s, int fd);
1245 int SSL_set_rfd(SSL *s, int fd);
1246 int SSL_set_wfd(SSL *s, int fd);
1249 void SSL_set_bio(SSL *s, BIO *rbio,BIO *wbio);
1250 BIO * SSL_get_rbio(const SSL *s);
1251 BIO * SSL_get_wbio(const SSL *s);
1253 int SSL_set_cipher_list(SSL *s, const char *str);
1254 void SSL_set_read_ahead(SSL *s, int yes);
1255 int SSL_get_verify_mode(const SSL *s);
1256 int SSL_get_verify_depth(const SSL *s);
1257 int (*SSL_get_verify_callback(const SSL *s))(int,X509_STORE_CTX *);
1258 void SSL_set_verify(SSL *s, int mode,
1260 void SSL_set_verify_depth(SSL *s, int depth);
1262 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);
1264 int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len);
1265 int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);
1266 int SSL_use_PrivateKey_ASN1(int pk,SSL *ssl, const unsigned char *d, long len);
1267 int SSL_use_certificate(SSL *ssl, X509 *x);
1268 int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);
1271 int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);
1272 int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);
1273 int SSL_use_certificate_file(SSL *ssl, const char *file, int type);
1291 const char *SSL_state_string(const SSL *s);
1292 const char *SSL_rstate_string(const SSL *s);
1293 const char *SSL_state_string_long(const SSL *s);
1294 const char *SSL_rstate_string_long(const SSL *s);
1299 void SSL_copy_session_id(SSL *to,const SSL *from);
1313 int SSL_set_session(SSL *to, SSL_SESSION *session);
1317 int SSL_set_generate_session_id(SSL *, GEN_SESSION_CB);
1318 int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id,
1324 X509 * SSL_get_peer_certificate(const SSL *s);
1327 STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s);
1350 int SSL_check_private_key(const SSL *ctx);
1355 SSL * SSL_new(SSL_CTX *ctx);
1356 int SSL_set_session_id_context(SSL *ssl,const unsigned char *sid_ctx,
1360 int SSL_set_purpose(SSL *s, int purpose);
1362 int SSL_set_trust(SSL *s, int trust);
1364 void SSL_free(SSL *ssl);
1365 int SSL_accept(SSL *ssl);
1366 int SSL_connect(SSL *ssl);
1367 int SSL_read(SSL *ssl,void *buf,int num);
1368 int SSL_peek(SSL *ssl,void *buf,int num);
1369 int SSL_write(SSL *ssl,const void *buf,int num);
1370 long SSL_ctrl(SSL *ssl,int cmd, long larg, void *parg);
1371 long SSL_callback_ctrl(SSL *, int, void (*)(void));
1375 int SSL_get_error(const SSL *s,int ret_code);
1376 const char *SSL_get_version(const SSL *s);
1378 /* This sets the 'default' SSL version that SSL_new() will create */
1401 STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *s);
1403 int SSL_do_handshake(SSL *s);
1404 int SSL_renegotiate(SSL *s);
1405 int SSL_renegotiate_pending(SSL *s);
1406 int SSL_shutdown(SSL *s);
1408 SSL_METHOD *SSL_get_ssl_method(SSL *s);
1409 int SSL_set_ssl_method(SSL *s,SSL_METHOD *method);
1415 void SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);
1417 STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s);
1419 int SSL_add_client_CA(SSL *ssl,X509 *x);
1422 void SSL_set_connect_state(SSL *s);
1423 void SSL_set_accept_state(SSL *s);
1425 long SSL_get_default_timeout(const SSL *s);
1432 SSL *SSL_dup(SSL *ssl);
1434 X509 *SSL_get_certificate(const SSL *ssl);
1435 /* EVP_PKEY */ struct evp_pkey_st *SSL_get_privatekey(SSL *ssl);
1439 void SSL_set_quiet_shutdown(SSL *ssl,int mode);
1440 int SSL_get_quiet_shutdown(const SSL *ssl);
1441 void SSL_set_shutdown(SSL *ssl,int mode);
1442 int SSL_get_shutdown(const SSL *ssl);
1443 int SSL_version(const SSL *ssl);
1448 SSL_SESSION *SSL_get_session(const SSL *ssl);
1449 SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */
1450 SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
1451 void SSL_set_info_callback(SSL *ssl,
1452 void (*cb)(const SSL *ssl,int type,int val));
1453 void (*SSL_get_info_callback(const SSL *ssl))(const SSL *ssl,int type,int val);
1454 int SSL_state(const SSL *ssl);
1456 void SSL_set_verify_result(SSL *ssl,long v);
1457 long SSL_get_verify_result(const SSL *ssl);
1459 int SSL_set_ex_data(SSL *ssl,int idx,void *data);
1460 void *SSL_get_ex_data(const SSL *ssl,int idx);
1503 RSA *(*cb)(SSL *ssl,int is_export,
1506 void SSL_set_tmp_rsa_callback(SSL *ssl,
1507 RSA *(*cb)(SSL *ssl,int is_export,
1512 DH *(*dh)(SSL *ssl,int is_export,
1514 void SSL_set_tmp_dh_callback(SSL *ssl,
1515 DH *(*dh)(SSL *ssl,int is_export,
1520 EC_KEY *(*ecdh)(SSL *ssl,int is_export,
1522 void SSL_set_tmp_ecdh_callback(SSL *ssl,
1523 EC_KEY *(*ecdh)(SSL *ssl,int is_export,
1528 const COMP_METHOD *SSL_get_current_compression(SSL *s);
1529 const COMP_METHOD *SSL_get_current_expansion(SSL *s);
1534 const void *SSL_get_current_compression(SSL *s);
1535 const void *SSL_get_current_expansion(SSL *s);
1547 /* Error codes for the SSL functions. */