Lines Matching refs:xpk
150 X509_PUBKEY *xpk = NULL; in key_to_pubkey() local
153 if ((xpk = X509_PUBKEY_new()) == NULL in key_to_pubkey()
155 || !X509_PUBKEY_set0_param(xpk, OBJ_nid2obj(key_nid), in key_to_pubkey()
158 X509_PUBKEY_free(xpk); in key_to_pubkey()
160 xpk = NULL; in key_to_pubkey()
163 return xpk; in key_to_pubkey()
315 X509_PUBKEY *xpk = NULL; in key_to_spki_der_pub_bio() local
321 xpk = key_to_pubkey(key, key_nid, str, strtype, k2d); in key_to_spki_der_pub_bio()
323 if (xpk != NULL) in key_to_spki_der_pub_bio()
324 ret = i2d_X509_PUBKEY_bio(out, xpk); in key_to_spki_der_pub_bio()
327 X509_PUBKEY_free(xpk); in key_to_spki_der_pub_bio()
341 X509_PUBKEY *xpk = NULL; in key_to_spki_pem_pub_bio() local
347 xpk = key_to_pubkey(key, key_nid, str, strtype, k2d); in key_to_spki_pem_pub_bio()
349 if (xpk != NULL) in key_to_spki_pem_pub_bio()
350 ret = PEM_write_bio_X509_PUBKEY(out, xpk); in key_to_spki_pem_pub_bio()
355 X509_PUBKEY_free(xpk); in key_to_spki_pem_pub_bio()