Lines Matching refs: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
73 static int ssl_use_certificate_chain_bio(SSL_CTX *ctx, SSL *ssl, BIO *in);
92 BIO *in;
96 in = BIO_new(BIO_s_file());
97 if (in == NULL) {
102 if (BIO_read_filename(in, file) <= 0) {
108 x = d2i_X509_bio(in, NULL);
111 x = PEM_read_bio_X509(in, NULL,
127 BIO_free(in);
235 BIO *in;
238 in = BIO_new(BIO_s_file());
239 if (in == NULL) {
244 if (BIO_read_filename(in, file) <= 0) {
250 rsa = d2i_RSAPrivateKey_bio(in, NULL);
253 rsa = PEM_read_bio_RSAPrivateKey(in, NULL,
267 BIO_free(in);
307 BIO *in;
310 in = BIO_new(BIO_s_file());
311 if (in == NULL) {
316 if (BIO_read_filename(in, file) <= 0) {
322 pkey = PEM_read_bio_PrivateKey(in, NULL,
327 pkey = d2i_PrivateKey_bio(in, NULL);
339 BIO_free(in);
455 BIO *in;
459 in = BIO_new(BIO_s_file());
460 if (in == NULL) {
465 if (BIO_read_filename(in, file) <= 0) {
471 x = d2i_X509_bio(in, NULL);
474 x = PEM_read_bio_X509(in, NULL, ctx->default_passwd_callback,
489 BIO_free(in);
544 BIO *in;
547 in = BIO_new(BIO_s_file());
548 if (in == NULL) {
553 if (BIO_read_filename(in, file) <= 0) {
559 rsa = d2i_RSAPrivateKey_bio(in, NULL);
562 rsa = PEM_read_bio_RSAPrivateKey(in, NULL,
576 BIO_free(in);
613 BIO *in;
616 in = BIO_new(BIO_s_file());
617 if (in == NULL) {
622 if (BIO_read_filename(in, file) <= 0) {
628 pkey = PEM_read_bio_PrivateKey(in, NULL,
633 pkey = d2i_PrivateKey_bio(in, NULL);
645 BIO_free(in);
670 * Read a bio that contains our certificate in "PEM" format,
672 * sent to the peer in the Certificate message.
675 ssl_use_certificate_chain_bio(SSL_CTX *ctx, SSL *ssl, BIO *in)
686 if ((x = PEM_read_bio_X509_AUX(in, NULL, passwd_cb, passwd_arg)) ==
699 while ((ca = PEM_read_bio_X509(in, NULL, passwd_cb, passwd_arg)) !=
724 BIO *in;
727 in = BIO_new(BIO_s_file());
728 if (in == NULL) {
733 if (BIO_read_filename(in, file) <= 0) {
738 ret = ssl_use_certificate_chain_bio(ctx, ssl, in);
741 BIO_free(in);
762 BIO *in;
765 in = BIO_new_mem_buf(buf, len);
766 if (in == NULL) {
771 ret = ssl_use_certificate_chain_bio(ctx, NULL, in);
774 BIO_free(in);