Lines Matching refs:pkey

224  *   pkey     - Entry which potentially has attributes to be freed.
230 sunw_evp_pkey_free(EVP_PKEY *pkey)
232 if (pkey != NULL) {
233 if (pkey->attributes != NULL) {
234 sk_X509_ATTRIBUTE_pop_free(pkey->attributes,
236 pkey->attributes = NULL;
238 EVP_PKEY_free(pkey);
249 * pkey - Points to a private key to set the keyidstr in.
262 sunw_set_localkeyid(const char *keyid_str, int keyid_len, EVP_PKEY *pkey,
278 if (pkey != NULL) {
299 if (pkey->attributes == NULL) {
300 pkey->attributes = sk_X509_ATTRIBUTE_new_null();
301 if (pkey->attributes == NULL) {
307 i = find_attr_by_nid(pkey->attributes, NID_localKeyID);
309 sk_X509_ATTRIBUTE_delete(pkey->attributes, i);
311 if (sk_X509_ATTRIBUTE_push(pkey->attributes, attr) == 0) {
336 * pkey - Points to a private key to set the keyidstr in.
349 sunw_get_pkey_localkeyid(getdo_actions_t dowhat, EVP_PKEY *pkey,
363 if (pkey == NULL || pkey->attributes == NULL) {
367 if ((i = find_attr_by_nid(pkey->attributes, NID_localKeyID)) < 0) {
370 attr = sk_X509_ATTRIBUTE_value(pkey->attributes, i);
378 attr = sk_X509_ATTRIBUTE_delete(pkey->attributes, i);
403 * pkey - Points to a private key to get the frientlyname from
414 sunw_get_pkey_fname(getdo_actions_t dowhat, EVP_PKEY *pkey, char **fname)
425 if (pkey == NULL || pkey->attributes == NULL) {
429 if ((i = find_attr_by_nid(pkey->attributes, NID_friendlyName)) < 0) {
432 attr = sk_X509_ATTRIBUTE_value(pkey->attributes, i);
440 attr = sk_X509_ATTRIBUTE_delete(pkey->attributes, i);
479 * - Pointer to receive address of first matching pkey found.
555 * - Pointer to receive address of first matching pkey found.
664 * pkey - Points to a private key.
671 sunw_check_keys(X509 *cert, EVP_PKEY *pkey)
675 if (pkey != NULL && cert != NULL)
676 retval = X509_check_private_key(cert, pkey);