Security: add sec_keychain, sec_certificate
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
6b8596830d
commit
5f3b4cc1bf
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include "CoreFoundation.hpp"
|
#include "CoreFoundation.hpp"
|
||||||
#import <Security/Security.h>
|
#include <Security/Security.h>
|
||||||
|
|
||||||
namespace macstd
|
namespace macstd
|
||||||
{
|
{
|
||||||
@ -131,4 +131,7 @@ namespace macstd
|
|||||||
AuthorizationFree(this->m_h, kAuthorizationFlagDefaults);
|
AuthorizationFree(this->m_h, kAuthorizationFlagDefaults);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
using sec_keychain = cf_object<SecKeychainRef, static_cast<SecKeychainRef>(NULL)>;
|
||||||
|
using sec_certificate = cf_object<SecCertificateRef, static_cast<SecCertificateRef>(NULL)>;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user