23 #ifndef NDN_HELPER_OSX_HPP
24 #define NDN_HELPER_OSX_HPP
27 #include "../../ndn-cpp-config.h"
28 #if NDN_CPP_HAVE_OSX_SECURITY
30 #include <CoreFoundation/CoreFoundation.h>
31 #include <Security/Security.h>
32 #include <CoreServices/CoreServices.h>
57 CFReleaser(
const T& typeRef)
62 CFReleaser(
const CFReleaser& inReleaser)
65 retain(inReleaser.m_typeRef);
69 operator=(
const T& typeRef)
71 if (typeRef != m_typeRef) {
79 operator=(
const CFReleaser& inReleaser)
81 retain(inReleaser.m_typeRef);
119 retain(
const T& typeRef)
131 T typeRef = m_typeRef;
138 if (m_typeRef != 0) {
139 CFRelease(m_typeRef);
148 typedef CFReleaser<SecKeyRef> KeyRefOsx;
152 #endif // NDN_CPP_HAVE_OSX_SECURITY