代码(OS X Mountain Lion):
OSStatus statusNew = SecCertificateInferLabel(cert, &nameRef);
在 subj 中产生一个警告,下面你有所有包括:
#import <SecurityInterface/SFChooseIdentityPanel.h>
#include <Security/cssmtype.h>
#include <Security/oidsalg.h>
#include <Security/SecCertificate.h>
#include <Security/SecIdentity.h>
#include <Security/SecIdentitySearch.h>
#include <Security/SecPolicySearch.h>
#include <Security/SecTrust.h>
#include <Security/SecIdentitySearch.h>
#include <Security/cssmapi.h>
#include <Security/cssmapple.h>
#include <Security/cssmtype.h>
#include <Security/Security.h>
有什么建议么?