Lines Matching refs:xpk
495 X509_PUBKEY *xpk, *xpk2 = NULL, **pxpk = NULL; in d2i_PUBKEY_int() local
515 xpk = d2i_x509_pubkey(pxpk, &q, length); in d2i_PUBKEY_int()
516 if (xpk == NULL) in d2i_PUBKEY_int()
518 pktmp = X509_PUBKEY_get(xpk); in d2i_PUBKEY_int()
519 X509_PUBKEY_free(xpk); in d2i_PUBKEY_int()
558 X509_PUBKEY *xpk = NULL; in i2d_PUBKEY() local
560 if ((xpk = X509_PUBKEY_new()) == NULL) in i2d_PUBKEY()
564 if (a->ameth->pub_encode != NULL && a->ameth->pub_encode(xpk, a)) { in i2d_PUBKEY()
565 xpk->pkey = (EVP_PKEY *)a; in i2d_PUBKEY()
566 ret = i2d_X509_PUBKEY(xpk, pp); in i2d_PUBKEY()
567 xpk->pkey = NULL; in i2d_PUBKEY()
569 X509_PUBKEY_free(xpk); in i2d_PUBKEY()