Lines Matching defs:certs

96  * sunw_split_certs() - Given a list of certs and a list of private keys,
97 * moves certs which match one of the keys to a different stack.
101 * allcerts - Points to a stack of certs to be searched.
102 * keycerts - Points to address of a stack of certs with matching private
107 * certs. Keys are moved from 'allkeys' here when they have no
108 * matching certs. If this is NULL, matchless keys will be
111 * Notes: If an error occurs while moving certs, the cert being move may be
112 * lost. 'keycerts' may only contain part of the matching certs. The number
113 * of certs successfully moved can be found by checking sk_X509_num(keycerts).
118 * If all certs are removed from 'certs' and/or 'pkeys', it will be the
124 * >= 0 - The number of certs moved from 'cert' to 'pkcerts'.
455 * sunw_find_localkeyid() searches stacks of certs and private keys,
458 * Look for a keyid in a stack of certs. if 'certs' is NULL and 'pkeys' is
466 * pkeys - Points to a stack of private keys which match the certs.
468 * certs - Points to a stack of certs to search. If NULL, search the
487 STACK_OF(X509) *certs, EVP_PKEY **matching_pkey, X509 **matching_cert)
496 (pkeys == NULL || certs == NULL) ||
498 (certs != NULL && matching_cert == NULL)) {
515 retval = find_attr(NID_localKeyID, cmpstr, pkeys, &tmp_pkey, certs,
531 * sunw_find_fname() searches stacks of certs and private keys for one with
535 * Look for a friendlyname in a stack of certs. if 'certs' is NULL and 'pkeys'
542 * pkeys - Points to a stack of private keys which match the certs.
544 * certs - Points to a stack of certs to search. If NULL, search the
558 sunw_find_fname(char *fname, STACK_OF(EVP_PKEY) *pkeys, STACK_OF(X509) *certs,
568 (pkeys == NULL || certs == NULL) ||
570 (certs != NULL && matching_cert == NULL)) {
588 retval = find_attr(NID_friendlyName, cmpstr, pkeys, &tmp_pkey, certs,
618 * cert - Points to a client or CA certs to check