Lines Matching defs:keyid

234  *   keyid    - If private key localkeyids friendlynames are to match a
237 * keyid_len- Length of the keyid byte string.
245 * Match based on the value of 'matchty' and the contents of 'keyid'
253 * 'keyid'.
276 sunw_PKCS12_parse(PKCS12 *p12, const char *pass, int matchty, char *keyid,
332 retval = parse_pkcs12(p12, pass, matchty, keyid, keyid_len,
694 if (cert->aux != NULL && cert->aux->keyid != NULL &&
695 cert->aux->keyid->type == V_ASN1_OCTET_STRING) {
696 str = cert->aux->keyid->data;
697 len = cert->aux->keyid->length;
743 if (cert->aux != NULL && cert->aux->keyid != NULL &&
744 cert->aux->keyid->type == V_ASN1_OCTET_STRING) {
745 str = cert->aux->keyid->data;
746 len = cert->aux->keyid->length;
945 * keyid_len- Length of the keyid byte string.
949 * Note that setting a keyid into a cert which will not be written out as
964 ASN1_TYPE *keyid = NULL;
979 (keyid = ASN1_TYPE_new()) == NULL) {
984 ASN1_TYPE_set(keyid, V_ASN1_OCTET_STRING, str);
987 attr = type2attrib(keyid, NID_localKeyID);
994 keyid = NULL;
1019 if (keyid != NULL)
1020 ASN1_TYPE_free(keyid);
1040 * >= 0 - The number of characters in the keyid returned.
1163 * Look for a keyid in a stack of certs. if 'certs' is NULL and 'pkeys' is
1170 * keyid_len- Length of the keyid byte string.
1517 * keyid - If private key localkeyids friendlynames are to match a
1520 * keyid_len- Length of the keyid byte string.
1541 parse_pkcs12(PKCS12 *p12, const char *pass, int matchty, char *keyid,
1577 if (keyid == NULL) {
1584 retval = sunw_find_localkeyid(keyid, kstr_len,
1804 ASN1_TYPE *keyid = NULL;
1813 keyid = PKCS12_get_attr(bag, NID_localKeyID);
1855 if (keyid != NULL) {
1856 if (keyid->type != V_ASN1_OCTET_STRING) {
1863 keyid->value.octet_string->data,
1864 keyid->value.octet_string->length) == 0) {
1909 if (keyid != NULL)
1910 ASN1_TYPE_free(keyid);
1922 if (keyid != NULL)
1923 ASN1_TYPE_free(keyid);
1932 if (retval != 0 && (keyid != NULL || fname != NULL) &&
1942 if (retval != 0 && keyid != NULL) {
1943 attr = type2attrib(keyid, NID_localKeyID);
1950 keyid = NULL;
2001 if (keyid != NULL)
2002 ASN1_TYPE_free(keyid);
2568 * LocalKeyId is also stored in the aux structure, under the name 'keyid'.
2578 * order. Search for the name or keyid in the stack of certs. If it is
2585 * A pointer to cert and/or pkey which matches the name or keyid is stored
2646 if (x->aux == NULL || x->aux->keyid == NULL)
2648 s = x->aux->keyid;