• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Security-57031.1.35/Security/libsecurity_keychain/lib/

Lines Matching refs:certificate

52 /* Return a certificate for the DER representation of this certificate.
54 certificate. */
58 /* Return the length of the DER representation of this certificate. */
59 CFIndex SecCertificateGetLength(SecCertificateRef certificate);
61 /* Return the bytes of the DER representation of this certificate. */
62 const UInt8 *SecCertificateGetBytePtr(SecCertificateRef certificate);
64 /* Return the SHA-1 hash of this certificate. */
65 CFDataRef SecCertificateGetSHA1Digest(SecCertificateRef certificate);
68 OSStatus SecCertificateGetCommonName(SecCertificateRef certificate, CFStringRef *commonName);
72 OSStatus SecCertificateGetEmailAddress(SecCertificateRef certificate, CFStringRef *emailAddress);
75 certificate if any. */
76 CFArrayRef SecCertificateCopyDNSNames(SecCertificateRef certificate);
81 @param certificate SecCertificate object created with SecCertificateCreateWithData().
82 @discussion All the data in this string comes from the certificate itself
83 and thus it's in whatever language the certificate itself is in.
86 CFStringRef SecCertificateCopyIssuerSummary(SecCertificateRef certificate);
92 OSStatus SecCertificateInferLabel(SecCertificateRef certificate, CFStringRef *label);
102 /* Accessors for fields in the cached certificate */
106 @abstract Retrieves the values for a particular field in a given certificate.
107 @param certificate A valid SecCertificateRef to the certificate.
115 OSStatus SecCertificateCopyFieldValues(SecCertificateRef certificate, const CSSM_OID *field, CSSM_DATA_PTR **fieldValues);
120 @param certificate A valid SecCertificateRef to the certificate.
126 OSStatus SecCertificateReleaseFieldValues(SecCertificateRef certificate, const CSSM_OID *field, CSSM_DATA_PTR *fieldValues);
131 @param certificate A valid SecCertificateRef to the certificate.
138 OSStatus SecCertificateCopyFirstFieldValue(SecCertificateRef certificate, const CSSM_OID *field, CSSM_DATA_PTR *fieldValue);
143 @param certificate A valid SecCertificateRef to the certificate.
149 OSStatus SecCertificateReleaseFirstFieldValue(SecCertificateRef certificate, const CSSM_OID *field, CSSM_DATA_PTR fieldValue);
153 @abstract Retrieves a component of the subject distinguished name of a given certificate.
154 @param certificate A reference to the certificate from which to retrieve the common name.
160 OSStatus SecCertificateCopySubjectComponent(SecCertificateRef certificate, const CSSM_OID *component,
163 /* Return the DER encoded issuer sequence for the certificate's issuer. */
164 CFDataRef SecCertificateCopyIssuerSequence(SecCertificateRef certificate);
166 /* Return the DER encoded subject sequence for the certificate's subject. */
167 CFDataRef SecCertificateCopySubjectSequence(SecCertificateRef certificate);
174 const CSSM_DATA *serialNumber, SecCertificateRef *certificate);
177 SecCertificateRef *certificate);
180 SecCertificateRef *certificate);
199 /* Return true iff certificate is valid as of verifyTime. */
201 bool SecCertificateIsValidX(SecCertificateRef certificate, CFAbsoluteTime verifyTime)
206 @abstract Check certificate validity on a given date.
207 @param certificate A certificate reference.
208 @result Returns true if the specified date falls within the certificate's validity period, false otherwise.
210 bool SecCertificateIsValid(SecCertificateRef certificate, CFAbsoluteTime verifyTime)
215 @abstract Obtain the starting date of the given certificate.
216 @param certificate A certificate reference.
217 @result Returns the absolute time at which the given certificate becomes valid,
220 CFAbsoluteTime SecCertificateNotValidBefore(SecCertificateRef certificate)
225 @abstract Obtain the expiration date of the given certificate.
226 @param certificate A certificate reference.
227 @result Returns the absolute time at which the given certificate expires,
230 CFAbsoluteTime SecCertificateNotValidAfter(SecCertificateRef certificate)
235 @abstract Determine if the given certificate is self-signed.
236 @param certRef A certificate reference.
237 @param isSelfSigned Will be set to true on return if the certificate is self-signed, false otherwise.
238 @result A result code. Returns errSecSuccess if the certificate's status can be determined.