Lines Matching refs:keyid

229  *   keyid    - If private key localkeyids friendlynames are to match a
232 * keyid_len- Length of the keyid byte string.
240 * Match based on the value of 'matchty' and the contents of 'keyid'
248 * 'keyid'.
271 sunw_PKCS12_parse(PKCS12 *p12, const char *pass, int matchty, char *keyid,
327 retval = parse_pkcs12(p12, pass, matchty, keyid, keyid_len,
689 if (cert->aux != NULL && cert->aux->keyid != NULL &&
690 cert->aux->keyid->type == V_ASN1_OCTET_STRING) {
691 str = cert->aux->keyid->data;
692 len = cert->aux->keyid->length;
738 if (cert->aux != NULL && cert->aux->keyid != NULL &&
739 cert->aux->keyid->type == V_ASN1_OCTET_STRING) {
740 str = cert->aux->keyid->data;
741 len = cert->aux->keyid->length;
940 * keyid_len- Length of the keyid byte string.
944 * Note that setting a keyid into a cert which will not be written out as
959 ASN1_TYPE *keyid = NULL;
974 (keyid = ASN1_TYPE_new()) == NULL) {
979 ASN1_TYPE_set(keyid, V_ASN1_OCTET_STRING, str);
982 attr = type2attrib(keyid, NID_localKeyID);
989 keyid = NULL;
1014 if (keyid != NULL)
1015 ASN1_TYPE_free(keyid);
1035 * >= 0 - The number of characters in the keyid returned.
1158 * Look for a keyid in a stack of certs. if 'certs' is NULL and 'pkeys' is
1165 * keyid_len- Length of the keyid byte string.
1512 * keyid - If private key localkeyids friendlynames are to match a
1515 * keyid_len- Length of the keyid byte string.
1536 parse_pkcs12(PKCS12 *p12, const char *pass, int matchty, char *keyid,
1572 if (keyid == NULL) {
1579 retval = sunw_find_localkeyid(keyid, kstr_len,
1799 ASN1_TYPE *keyid = NULL;
1808 keyid = PKCS12_get_attr(bag, NID_localKeyID);
1850 if (keyid != NULL) {
1851 if (keyid->type != V_ASN1_OCTET_STRING) {
1858 keyid->value.octet_string->data,
1859 keyid->value.octet_string->length) == 0) {
1904 if (keyid != NULL)
1905 ASN1_TYPE_free(keyid);
1917 if (keyid != NULL)
1918 ASN1_TYPE_free(keyid);
1927 if (retval != 0 && (keyid != NULL || fname != NULL) &&
1937 if (retval != 0 && keyid != NULL) {
1938 attr = type2attrib(keyid, NID_localKeyID);
1945 keyid = NULL;
1996 if (keyid != NULL)
1997 ASN1_TYPE_free(keyid);
2563 * LocalKeyId is also stored in the aux structure, under the name 'keyid'.
2573 * order. Search for the name or keyid in the stack of certs. If it is
2580 * A pointer to cert and/or pkey which matches the name or keyid is stored
2641 if (x->aux == NULL || x->aux->keyid == NULL)
2643 s = x->aux->keyid;