Lines Matching refs:pub
350 int X509_PUBKEY_set0_param(X509_PUBKEY *pub, const ASN1_OBJECT *aobj, in X509_PUBKEY_set0_param() argument
354 if (!X509_ALGOR_set0(pub->algor, aobj, ptype, pval)) in X509_PUBKEY_set0_param()
358 if (pub->public_key->data) in X509_PUBKEY_set0_param()
359 OPENSSL_free(pub->public_key->data); in X509_PUBKEY_set0_param()
360 pub->public_key->data = penc; in X509_PUBKEY_set0_param()
361 pub->public_key->length = penclen; in X509_PUBKEY_set0_param()
363 pub->public_key->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); in X509_PUBKEY_set0_param()
364 pub->public_key->flags|=ASN1_STRING_FLAG_BITS_LEFT; in X509_PUBKEY_set0_param()
372 X509_PUBKEY *pub) in X509_PUBKEY_get0_param() argument
375 *ppkalg = pub->algor->algorithm; in X509_PUBKEY_get0_param()
378 *pk = pub->public_key->data; in X509_PUBKEY_get0_param()
379 *ppklen = pub->public_key->length; in X509_PUBKEY_get0_param()
382 *pa = pub->algor; in X509_PUBKEY_get0_param()