• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Security-55471.14.18/libsecurity_keychain/Security/

Lines Matching refs:policy

168 		SecPointer<Policy> policy;
169 while ( cursor->next(policy) ) /* copies the next policy */
171 CFArrayAppendValue(currPolicies, policy->handle()); /* 'SecPolicyRef' appended */
172 CFRelease(policy->handle()); /* refcount bumped up when appended to array */
182 SecPolicyCopy(CSSM_CERT_TYPE certificateType, const CSSM_OID *policyOID, SecPolicyRef* policy)
184 Required(policy);
194 ortn = SecPolicySearchCopyNext(srchRef, policy);
203 // return a SecPolicyRef object for the X.509 Basic policy
204 SecPolicyRef policy = nil;
208 status = SecPolicySearchCopyNext(policySearch, &policy);
213 return policy;
220 // return a SecPolicyRef object for the SSL policy, given hostname and client options
221 SecPolicyRef policy = nil;
225 status = SecPolicySearchCopyNext(policySearch, &policy);
227 if (!status && policy) {
228 // set options for client-side or server-side policy evaluation
245 SecPolicySetValue(policy, &data);
254 return policy;
260 SecPolicyRef policy = NULL;
263 PolicyCursor::policy(oidPtr, policyObj);
264 policy = policyObj->handle();
268 return policy;
275 // for now, we only accept the policy constants that are defined in SecPolicy.h
278 SecPolicyRef policy = NULL;
316 status = SecPolicySearchCopyNext(policySearch, &policy);
319 if (!policy && CFEqual(policyOID, kSecPolicyAppleRevocation)) {
320 policy = SecPolicyCreateRevocation(kSecRevocationUseAnyAvailableMethod);
322 if (!policy) {
323 policy = SecPolicyCreateWithSecAsn1Oid((SecAsn1Oid*)oidPtr);
326 return policy;
333 SecPolicyRef policy = SecPolicyCreateWithOID(policyIdentifier);
334 SecPolicySetProperties(policy, properties);
336 return policy;
343 // return a SecPolicyRef object for the unified revocation policy
345 SecPolicyRef policy = SecPolicyCreateWithSecAsn1Oid(oidPtr);
346 //%%% FIXME set policy value with revocationFlags
348 return policy;