summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_rsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_rsa.c')
-rw-r--r--src/lib/libssl/ssl_rsa.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/libssl/ssl_rsa.c b/src/lib/libssl/ssl_rsa.c
index 05d18de1d9..23891bf11b 100644
--- a/src/lib/libssl/ssl_rsa.c
+++ b/src/lib/libssl/ssl_rsa.c
@@ -80,7 +80,6 @@ SSL_use_certificate(SSL *ssl, X509 *x)
80 return (ssl_set_cert(ssl->cert, x)); 80 return (ssl_set_cert(ssl->cert, x));
81} 81}
82 82
83#ifndef OPENSSL_NO_STDIO
84int 83int
85SSL_use_certificate_file(SSL *ssl, const char *file, int type) 84SSL_use_certificate_file(SSL *ssl, const char *file, int type)
86{ 85{
@@ -123,7 +122,6 @@ end:
123 BIO_free(in); 122 BIO_free(in);
124 return (ret); 123 return (ret);
125} 124}
126#endif
127 125
128int 126int
129SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len) 127SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len)
@@ -210,7 +208,6 @@ ssl_set_pkey(CERT *c, EVP_PKEY *pkey)
210 return (1); 208 return (1);
211} 209}
212 210
213#ifndef OPENSSL_NO_STDIO
214int 211int
215SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type) 212SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type)
216{ 213{
@@ -250,7 +247,6 @@ end:
250 BIO_free(in); 247 BIO_free(in);
251 return (ret); 248 return (ret);
252} 249}
253#endif
254 250
255int 251int
256SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len) 252SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len)
@@ -287,7 +283,6 @@ SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey)
287 return (ret); 283 return (ret);
288} 284}
289 285
290#ifndef OPENSSL_NO_STDIO
291int 286int
292SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type) 287SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type)
293{ 288{
@@ -327,7 +322,6 @@ end:
327 BIO_free(in); 322 BIO_free(in);
328 return (ret); 323 return (ret);
329} 324}
330#endif
331 325
332int 326int
333SSL_use_PrivateKey_ASN1(int type, SSL *ssl, const unsigned char *d, long len) 327SSL_use_PrivateKey_ASN1(int type, SSL *ssl, const unsigned char *d, long len)
@@ -415,7 +409,6 @@ ssl_set_cert(CERT *c, X509 *x)
415 return (1); 409 return (1);
416} 410}
417 411
418#ifndef OPENSSL_NO_STDIO
419int 412int
420SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type) 413SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type)
421{ 414{
@@ -458,7 +451,6 @@ end:
458 BIO_free(in); 451 BIO_free(in);
459 return (ret); 452 return (ret);
460} 453}
461#endif
462 454
463int 455int
464SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d) 456SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d)
@@ -504,7 +496,6 @@ SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa)
504 return (ret); 496 return (ret);
505} 497}
506 498
507#ifndef OPENSSL_NO_STDIO
508int 499int
509SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type) 500SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type)
510{ 501{
@@ -544,7 +535,6 @@ end:
544 BIO_free(in); 535 BIO_free(in);
545 return (ret); 536 return (ret);
546} 537}
547#endif
548 538
549int 539int
550SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len) 540SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len)
@@ -578,7 +568,6 @@ SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey)
578 return (ssl_set_pkey(ctx->cert, pkey)); 568 return (ssl_set_pkey(ctx->cert, pkey));
579} 569}
580 570
581#ifndef OPENSSL_NO_STDIO
582int 571int
583SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type) 572SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type)
584{ 573{
@@ -618,7 +607,6 @@ end:
618 BIO_free(in); 607 BIO_free(in);
619 return (ret); 608 return (ret);
620} 609}
621#endif
622 610
623int 611int
624SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, const unsigned char *d, 612SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, const unsigned char *d,
@@ -640,7 +628,6 @@ SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, const unsigned char *d,
640} 628}
641 629
642 630
643#ifndef OPENSSL_NO_STDIO
644/* Read a file that contains our certificate in "PEM" format, 631/* Read a file that contains our certificate in "PEM" format,
645 * possibly followed by a sequence of CA certificates that should be 632 * possibly followed by a sequence of CA certificates that should be
646 * sent to the peer in the Certificate message. 633 * sent to the peer in the Certificate message.
@@ -720,4 +707,3 @@ end:
720 BIO_free(in); 707 BIO_free(in);
721 return (ret); 708 return (ret);
722} 709}
723#endif