Home | History | Annotate | Download | only in ssl

Lines Matching defs:in

11  * apply to all code found in this distribution, be it the RC4, RSA,
16 * Copyright remains Eric Young's, and as such any Copyright notices in
18 * If this package is used in a product, Eric Young should be given attribution
20 * This can be in the form of a textual message at program startup or
21 * in documentation (online or textual) provided with the package.
23 * Redistribution and use in source and binary forms, with or without
28 * 2. Redistributions in binary form must reproduce the above copyright
29 * notice, this list of conditions and the following disclaimer in the
44 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
48 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
88 BIO *in;
92 in=BIO_new(BIO_s_file_internal());
93 if (in == NULL)
99 if (BIO_read_filename(in,file) <= 0)
107 x=d2i_X509_bio(in,NULL);
112 x=PEM_read_bio_X509(in,NULL,ssl->ctx->default_passwd_callback,ssl->ctx->default_passwd_callback_userdata);
129 if (in != NULL) BIO_free(in);
232 BIO *in;
235 in=BIO_new(BIO_s_file_internal());
236 if (in == NULL)
242 if (BIO_read_filename(in,file) <= 0)
250 rsa=d2i_RSAPrivateKey_bio(in,NULL);
255 rsa=PEM_read_bio_RSAPrivateKey(in,NULL,
271 if (in != NULL) BIO_free(in);
317 BIO *in;
320 in=BIO_new(BIO_s_file_internal());
321 if (in == NULL)
327 if (BIO_read_filename(in,file) <= 0)
335 pkey=PEM_read_bio_PrivateKey(in,NULL,
341 pkey = d2i_PrivateKey_bio(in,NULL);
356 if (in != NULL) BIO_free(in);
457 BIO *in;
461 in=BIO_new(BIO_s_file_internal());
462 if (in == NULL)
468 if (BIO_read_filename(in,file) <= 0)
476 x=d2i_X509_bio(in,NULL);
481 x=PEM_read_bio_X509(in,NULL,ctx->default_passwd_callback,ctx->default_passwd_callback_userdata);
498 if (in != NULL) BIO_free(in);
554 BIO *in;
557 in=BIO_new(BIO_s_file_internal());
558 if (in == NULL)
564 if (BIO_read_filename(in,file) <= 0)
572 rsa=d2i_RSAPrivateKey_bio(in,NULL);
577 rsa=PEM_read_bio_RSAPrivateKey(in,NULL,
593 if (in != NULL) BIO_free(in);
636 BIO *in;
639 in=BIO_new(BIO_s_file_internal());
640 if (in == NULL)
646 if (BIO_read_filename(in,file) <= 0)
654 pkey=PEM_read_bio_PrivateKey(in,NULL,
660 pkey = d2i_PrivateKey_bio(in,NULL);
675 if (in != NULL) BIO_free(in);
739 /* Read a file that contains our certificate in "PEM" format,
741 * sent to the peer in the Certificate message.
745 BIO *in;
751 in = BIO_new(BIO_s_file_internal());
752 if (in == NULL)
758 if (BIO_read_filename(in,file) <= 0)
764 x=PEM_read_bio_X509_AUX(in,NULL,ctx->default_passwd_callback,
791 while ((ca = PEM_read_bio_X509(in, NULL,
818 if (in != NULL) BIO_free(in);