Home | History | Annotate | Download | only in ssl

Lines Matching refs:SSL

4  * This package is an SSL implementation written
6 * The implementation was written so as to conform with Netscapes SSL.
11 * lhash, DES, etc., code; not just the SSL code. The SSL documentation
111 #include <openssl/ssl.h>
143 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE);
158 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE);
208 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE);
250 int SSL_use_certificate_file(SSL *ssl, const char *file, int type) {
258 OPENSSL_PUT_ERROR(SSL, ERR_R_BUF_LIB);
263 OPENSSL_PUT_ERROR(SSL, ERR_R_SYS_LIB);
272 x = PEM_read_bio_X509(in, NULL, ssl->ctx->default_passwd_callback,
273 ssl->ctx->default_passwd_callback_userdata);
275 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SSL_FILETYPE);
280 OPENSSL_PUT_ERROR(SSL, reason_code);
284 ret = SSL_use_certificate(ssl, x);
293 int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type) {
300 OPENSSL_PUT_ERROR(SSL, ERR_R_BUF_LIB);
305 OPENSSL_PUT_ERROR(SSL, ERR_R_SYS_LIB);
315 PEM_read_bio_RSAPrivateKey(in, NULL, ssl->ctx->default_passwd_callback,
316 ssl->ctx->default_passwd_callback_userdata);
318 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SSL_FILETYPE);
323 OPENSSL_PUT_ERROR(SSL, reason_code);
326 ret = SSL_use_RSAPrivateKey(ssl, rsa);
334 int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type) {
341 OPENSSL_PUT_ERROR(SSL, ERR_R_BUF_LIB);
346 OPENSSL_PUT_ERROR(SSL, ERR_R_SYS_LIB);
352 pkey = PEM_read_bio_PrivateKey(in, NULL, ssl->ctx->default_passwd_callback,
353 ssl->ctx->default_passwd_callback_userdata);
358 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SSL_FILETYPE);
363 OPENSSL_PUT_ERROR(SSL, reason_code);
366 ret = SSL_use_PrivateKey(ssl, pkey);
382 OPENSSL_PUT_ERROR(SSL, ERR_R_BUF_LIB);
387 OPENSSL_PUT_ERROR(SSL, ERR_R_SYS_LIB);
399 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SSL_FILETYPE);
404 OPENSSL_PUT_ERROR(SSL, reason_code);
423 OPENSSL_PUT_ERROR(SSL, ERR_R_BUF_LIB);
428 OPENSSL_PUT_ERROR(SSL, ERR_R_SYS_LIB);
440 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SSL_FILETYPE);
445 OPENSSL_PUT_ERROR(SSL, reason_code);
463 OPENSSL_PUT_ERROR(SSL, ERR_R_BUF_LIB);
468 OPENSSL_PUT_ERROR(SSL, ERR_R_SYS_LIB);
480 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SSL_FILETYPE);
485 OPENSSL_PUT_ERROR(SSL, reason_code);
508 OPENSSL_PUT_ERROR(SSL, ERR_R_BUF_LIB);
513 OPENSSL_PUT_ERROR(SSL, ERR_R_SYS_LIB);
520 OPENSSL_PUT_ERROR(SSL, ERR_R_PEM_LIB);