Lines Matching defs:file
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
45 int SSL_use_certificate_file(SSL *ssl, const char *file, int type)
58 if (BIO_read_filename(in, file) <= 0) {
150 int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type)
162 if (BIO_read_filename(in, file) <= 0) {
277 int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type)
290 if (BIO_read_filename(in, file) <= 0) {
354 int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type)
366 if (BIO_read_filename(in, file) <= 0) {
414 * Read a file that contains our certificate in "PEM" format, possibly
418 static int use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file)
447 if (BIO_read_filename(in, file) <= 0) {
532 int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file)
534 return use_certificate_chain_file(ctx, NULL, file);
537 int SSL_use_certificate_chain_file(SSL *ssl, const char *file)
539 return use_certificate_chain_file(NULL, ssl, file);
806 int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file)
822 if (ctx == NULL || file == NULL) {
832 if (BIO_read_filename(bin, file) <= 0) {
844 * There must be at least one extension in this file
849 } else /* End of file, we're done */