Security: add sec_keychain, sec_certificate

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2025-06-17 16:36:55 +02:00
parent 6b8596830d
commit 5f3b4cc1bf

View File

@ -7,7 +7,7 @@
#include "common.hpp"
#include "CoreFoundation.hpp"
#import <Security/Security.h>
#include <Security/Security.h>
namespace macstd
{
@ -131,4 +131,7 @@ namespace macstd
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)>;
}