Searched defs:CAfile (Results 1 - 14 of 14) sorted by relevance

/external/openssl/apps/
H A Dverify.c84 char *CApath=NULL,*CAfile=NULL; local
121 else if (strcmp(*argv,"-CAfile") == 0)
124 CAfile= *(++argv);
179 if (CAfile) {
180 i=X509_LOOKUP_load_file(lookup,CAfile,X509_FILETYPE_PEM);
182 BIO_printf(bio_err, "Error loading file %s\n", CAfile);
232 BIO_printf(bio_err,"usage: verify [-verbose] [-CApath path] [-CAfile file] [-purpose purpose] [-crl_check]");
H A Dcrl.c90 " -CAfile name - verify CRL using certificates in file \"name\"\n",
105 char *CAfile = NULL, *CApath = NULL; local
183 else if (strcmp(*argv,"-CAfile") == 0)
186 CAfile = *(++argv);
243 if (!X509_LOOKUP_load_file(lookup,CAfile,X509_FILETYPE_PEM))
H A Ds_time.c127 static char *CAfile=NULL; variable
150 CAfile=NULL;
181 -CAfile arg - PEM format file of CA's\n\
258 } else if( strcmp(*argv,"-CAfile") == 0) {
261 CAfile= *(++argv);
376 if ((!SSL_CTX_load_verify_locations(tm_ctx,CAfile,CApath)) ||
H A Dsmime.c108 char *CAfile = NULL, *CApath = NULL; local
326 else if (!strcmp (*args, "-CAfile"))
330 CAfile = *++args;
481 BIO_printf (bio_err, "-CAfile file trusted certificates file\n");
672 if (!(store = setup_verify(bio_err, CAfile, CApath)))
H A Dcms.c128 char *CAfile = NULL, *CApath = NULL; local
473 else if (!strcmp (*args, "-CAfile"))
477 CAfile = *++args;
642 BIO_printf (bio_err, "-CAfile file trusted certificates file\n");
889 if (!(store = setup_verify(bio_err, CAfile, CApath)))
H A Dpkcs12.c126 char *CApath = NULL, *CAfile = NULL; local
259 } else if (!strcmp(*args,"-CAfile")) {
262 CAfile = *args;
285 BIO_printf (bio_err, "-CAfile arg - PEM format file of CA's\n");
527 if (!X509_STORE_load_locations(store, CAfile, CApath))
H A Docsp.c149 char *CAfile = NULL, *CApath = NULL; local
338 else if (!strcmp (*args, "-CAfile"))
343 CAfile = *args;
597 BIO_printf (bio_err, "-CAfile file trusted certificates file\n");
851 store = setup_verify(bio_err, CAfile, CApath);
H A Dx509.c159 static int x509_certify (X509_STORE *ctx,char *CAfile,const EVP_MD *digest,
184 char *infile=NULL,*outfile=NULL,*keyfile=NULL,*CAfile=NULL; local
330 CAfile= *(++argv);
521 { CAkeyfile=CAfile; }
667 xca=load_cert(bio_err,CAfile,CAformat,NULL,e,"CA Certificate");
983 if (!x509_certify(ctx,CAfile,digest,x,xca,
1107 static ASN1_INTEGER *x509_load_serial(char *CAfile, char *serialfile, int create) argument
1115 ?(strlen(CAfile)+strlen(POSTFIX)+1)
1121 BUF_strlcpy(buf,CAfile,len);
1147 static int x509_certify(X509_STORE *ctx, char *CAfile, cons argument
[all...]
H A Ds_client.c300 BIO_printf(bio_err," -CAfile arg - PEM format file of CA's\n");
575 char *CApath=NULL,*CAfile=NULL,*cipher=NULL; local
856 else if (strcmp(*argv,"-CAfile") == 0)
859 CAfile= *(++argv);
1182 if ((!SSL_CTX_load_verify_locations(ctx,CAfile,CApath)) ||
H A Ds_server.c499 BIO_printf(bio_err," -CAfile arg - PEM format file of CA's\n");
933 char *CApath=NULL,*CAfile=NULL; local
1116 else if (strcmp(*argv,"-CAfile") == 0)
1119 CAfile= *(++argv);
1568 if ((!SSL_CTX_load_verify_locations(ctx,CAfile,CApath)) ||
1625 if ((!SSL_CTX_load_verify_locations(ctx2,CAfile,CApath)) ||
1865 if (CAfile != NULL)
1867 SSL_CTX_set_client_CA_list(ctx,SSL_load_client_CA_file(CAfile));
1870 SSL_CTX_set_client_CA_list(ctx2,SSL_load_client_CA_file(CAfile));
H A Dapps.c1426 X509_STORE *setup_verify(BIO *bp, char *CAfile, char *CApath) argument
1433 if (CAfile) {
1434 if(!X509_LOOKUP_load_file(lookup,CAfile,X509_FILETYPE_PEM)) {
1435 BIO_printf(bp, "Error loading file %s\n", CAfile);
/external/openssl/crypto/threads/
H A Dmttest.c176 fprintf(stderr," -CAfile arg - PEM format file of CA's\n");
188 char *CApath=NULL,*CAfile=NULL; local
227 else if (strcmp(*argv,"-CAfile") == 0)
230 CAfile= *(++argv);
309 if ( (!SSL_CTX_load_verify_locations(s_ctx,CAfile,CApath)) ||
311 (!SSL_CTX_load_verify_locations(c_ctx,CAfile,CApath)) ||
/external/openssl/ssl/
H A Dssltest.c355 fprintf(stderr," -CAfile arg - PEM format file of CA's\n");
510 char *CApath=NULL,*CAfile=NULL; local
728 else if (strcmp(*argv,"-CAfile") == 0)
731 CAfile= *(++argv);
1032 if ( (!SSL_CTX_load_verify_locations(s_ctx,CAfile,CApath)) ||
1034 (!SSL_CTX_load_verify_locations(c_ctx,CAfile,CApath)) ||
H A Dssl_lib.c2996 int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile, argument
2999 return(X509_STORE_load_locations(ctx->cert_store,CAfile,CApath));

Completed in 142 milliseconds