Lines Matching refs:work_kl
394 STACK_OF(EVP_PKEY) *work_kl = NULL; in sunw_PEM_contents()
402 if ((work_kl = sk_EVP_PKEY_new_null()) == NULL) { in sunw_PEM_contents()
413 if (pem_info(fp, cb, userdata, &work_kl, &work_ca) <= 0) { in sunw_PEM_contents()
418 retval = set_results(pkey, &work_kl, certs, &work_ca, NULL, NULL, NULL, in sunw_PEM_contents()
421 if (work_kl != NULL) { in sunw_PEM_contents()
422 sk_EVP_PKEY_pop_free(work_kl, sunw_evp_pkey_free); in sunw_PEM_contents()
458 STACK_OF(EVP_PKEY) *work_kl = NULL; in sunw_PKCS12_contents()
466 if ((work_kl = sk_EVP_PKEY_new_null()) == NULL) { in sunw_PKCS12_contents()
476 if (parse_outer(p12, pass, work_kl, work_ca) == 0) { in sunw_PKCS12_contents()
484 retval = set_results(pkey, &work_kl, certs, &work_ca, NULL, in sunw_PKCS12_contents()
488 if (work_kl != NULL) { in sunw_PKCS12_contents()
489 sk_EVP_PKEY_pop_free(work_kl, sunw_evp_pkey_free); in sunw_PKCS12_contents()
1545 STACK_OF(EVP_PKEY) *work_kl = NULL; /* Head for private key list */ in parse_pkcs12()
1552 retval = sunw_PKCS12_contents(p12, pass, &work_kl, &work_ca); in parse_pkcs12()
1562 if (sk_EVP_PKEY_num(work_kl) > 0) { in parse_pkcs12()
1564 if (sunw_split_certs(work_kl, work_ca, &work_cl, &nocerts) in parse_pkcs12()
1585 work_kl, work_cl, pkey, cert); in parse_pkcs12()
1602 retval = sunw_find_fname(name_str, work_kl, work_cl, in parse_pkcs12()
1615 retval = get_key_cert(0, work_kl, pkey, work_cl, cert); in parse_pkcs12()
1634 retval = get_key_cert(n, work_kl, pkey, work_cl, cert); in parse_pkcs12()
1651 tmpk = work_kl; in parse_pkcs12()
1652 if (work_kl == NULL || sk_EVP_PKEY_num(work_kl) == 0) in parse_pkcs12()
1685 if (work_kl != NULL) { in parse_pkcs12()
1686 sk_EVP_PKEY_pop_free(work_kl, sunw_evp_pkey_free); in parse_pkcs12()
2036 STACK_OF(EVP_PKEY) *work_kl; in pem_info()
2051 if ((work_kl = sk_EVP_PKEY_new_null()) == NULL) { in pem_info()
2132 retval = sk_EVP_PKEY_push(work_kl, x->x_pkey->dec_pkey); in pem_info()
2148 retval = set_results(pkeys, &work_kl, certs, &work_cl, NULL, NULL, in pem_info()
2152 if (work_kl != NULL) { in pem_info()
2153 sk_EVP_PKEY_pop_free(work_kl, sunw_evp_pkey_free); in pem_info()
2739 set_results(STACK_OF(EVP_PKEY) **pkeys, STACK_OF(EVP_PKEY) **work_kl, argument
2746 if (pkeys != NULL && work_kl != NULL && *work_kl != NULL &&
2747 sk_EVP_PKEY_num(*work_kl) > 0) {
2749 *pkeys = *work_kl;
2750 *work_kl = NULL;
2752 if (sunw_append_keys(*pkeys, *work_kl) < 0) {