Lines Matching refs:NULL

61 static char *input = NULL;	/* Consolidated input file */
62 static char *key_out = NULL; /* Key file to be output */
63 static char *cert_out = NULL; /* Cert file to be output */
64 static char *trust_out = NULL; /* Trust anchor file to be output */
104 if (progname != NULL)
148 if (input == NULL) {
183 if (nkeystr == NULL || k_matchval == NULL) {
225 STACK_OF(X509) *ta_in = NULL;
226 EVP_PKEY *pkey_in = NULL;
227 X509 *xcert_in = NULL;
235 if (xcert_in != NULL) {
243 bufp = sunw_subject_attrs(xcert_in, NULL, 0);
244 if (bufp != NULL) {
250 bufp = sunw_issuer_attrs(xcert_in, NULL, 0);
251 if (bufp != NULL) {
256 (void) sunw_print_times(stdout, PRNT_BOTH, NULL,
260 if (ta_in != NULL) {
275 bufp = sunw_subject_attrs(x, NULL, 0);
276 if (bufp != NULL) {
282 bufp = sunw_issuer_attrs(x, NULL, 0);
283 if (bufp != NULL) {
290 NULL, x);
296 if (xcert_in != NULL && pkey_in != NULL) {
323 if (c_in != NULL && *c_in != NULL && t_in != NULL) {
324 if (*t_in == NULL) {
325 if ((*t_in = sk_X509_new_null()) == NULL) {
336 *c_in = NULL;
341 if ((outfiles & IO_KEYFILE) && *k_in == NULL) {
345 if ((outfiles & IO_CERTFILE) && *c_in == NULL) {
349 if ((outfiles & IO_TRUSTFILE) && *t_in == NULL) {
365 if (c_in != NULL && *c_in != NULL) {
371 *c_in = NULL;
375 if (ta_in == NULL)
442 i = X509_cmp_time(X509_get_notBefore(cert), NULL);
449 i = X509_cmp_time(X509_get_notAfter(cert), NULL);
460 if (key_out != NULL) {
463 if (do_ofile(key_out, k_out, NULL, NULL) < 0)
467 if (cert_out != NULL) {
470 if (do_ofile(cert_out, NULL, c_out, NULL) < 0)
474 if (trust_out != NULL) {
478 if (do_ofile(trust_out, NULL, NULL, t_out) < 0)
499 if ((fp = fopen(name, "r")) == NULL) {
504 p12 = d2i_PKCS12_fp(fp, NULL);
505 if (p12 == NULL) {
513 NULL, tmp_k, tmp_c, tmp_t);
529 STACK_OF(EVP_PKEY) *klist = NULL;
530 STACK_OF(X509) *clist = NULL;
531 PKCS12 *p12 = NULL;
541 if ((fp = fopen(name, "w")) == NULL) {
546 if ((clist = sk_X509_new_null()) == NULL ||
547 (klist = sk_EVP_PKEY_new_null()) == NULL) {
553 if (cert != NULL && sk_X509_push(clist, cert) == 0) {
559 if (pkey != NULL && sk_EVP_PKEY_push(klist, pkey) == 0) {
566 if (p12 == NULL) {
580 if (p12 != NULL)
587 if (clist != NULL) {
588 if (cert != NULL && sk_X509_num(clist) == 1) {
594 if (klist != NULL) {
595 if (pkey != NULL && sk_EVP_PKEY_num(klist) == 1) {