Lines Matching defs:cert

115  *   Notes:  If an error occurs while moving certs, the cert being move may be
119 * If there is a key which does not have a matching cert, it is moved to
128 * >= 0 - The number of certs moved from 'cert' to 'pkcerts'.
184 * No cert matching this key. Move the key if
243 * sunw_set_localkeyid() sets the localkeyid in a cert, a private key or
250 * cert - Points to a cert to set the keyidstr in.
252 * Note that setting a keyid into a cert which will not be written out as
253 * a PKCS12 cert is pointless since it will be lost.
263 X509 *cert)
271 if (cert != NULL) {
272 if (X509_keyid_set1(cert, (uchar_t *)keyid_str, keyid_len)
464 * and returns the first matching cert/private key found.
467 * not NULL, search the list of private keys. Move the matching cert to
469 * cert or keys match, no match occurred.
483 * - Pointer to receive address of first matching cert found.
540 * a matching friendlyname and returns the first matching cert/private
544 * is not NULL, search the list of private keys. Move the matching cert to
546 * cert or keys match, no match occurred.
557 * - Pointer to receive address of first matching cert found.
612 * sunw_print_times() formats and prints cert times to the given file.
626 * cert - Points to a client or CA certs to check
633 sunw_print_times(FILE *fp, prnt_actions_t dowhat, char *label, X509 *cert)
644 (void) print_time(fp, X509_get_notBefore(cert));
651 (void) print_time(fp, X509_get_notAfter(cert));
663 * cert - Points to a certificate.
668 * != 0 - The cert's public key and the private key match.
671 sunw_check_keys(X509 *cert, EVP_PKEY *pkey)
675 if (pkey != NULL && cert != NULL)
676 retval = X509_check_private_key(cert, pkey);
682 * sunw_issuer_attrs - Given a cert, return the issuer-specific attributes
686 * cert - Cert to process
707 sunw_issuer_attrs(X509 *cert, char *buf, int len)
709 return (X509_NAME_oneline(X509_get_issuer_name(cert), buf, len));
713 * sunw_subject_attrs - Given a cert, return the subject-specific attributes
717 * cert - Cert to process
738 sunw_subject_attrs(X509 *cert, char *buf, int len)
740 return (X509_NAME_oneline(X509_get_subject_name(cert), buf, len));