diff options
Diffstat (limited to 'src/lib/libssl/ssl_rsa.c')
-rw-r--r-- | src/lib/libssl/ssl_rsa.c | 14 |
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 | ||
84 | int | 83 | int |
85 | SSL_use_certificate_file(SSL *ssl, const char *file, int type) | 84 | SSL_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 | ||
128 | int | 126 | int |
129 | SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len) | 127 | SSL_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 | ||
214 | int | 211 | int |
215 | SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type) | 212 | SSL_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 | ||
255 | int | 251 | int |
256 | SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len) | 252 | SSL_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 | ||
291 | int | 286 | int |
292 | SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type) | 287 | SSL_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 | ||
332 | int | 326 | int |
333 | SSL_use_PrivateKey_ASN1(int type, SSL *ssl, const unsigned char *d, long len) | 327 | SSL_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 | ||
419 | int | 412 | int |
420 | SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type) | 413 | SSL_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 | ||
463 | int | 455 | int |
464 | SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d) | 456 | SSL_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 | ||
508 | int | 499 | int |
509 | SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type) | 500 | SSL_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 | ||
549 | int | 539 | int |
550 | SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len) | 540 | SSL_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 | ||
582 | int | 571 | int |
583 | SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type) | 572 | SSL_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 | ||
623 | int | 611 | int |
624 | SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, const unsigned char *d, | 612 | SSL_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 | ||