22 #ifndef NDN_SECURITY_TPM_HELPER_OSX_HPP
23 #define NDN_SECURITY_TPM_HELPER_OSX_HPP
25 #include "../../common.hpp"
27 #ifndef NDN_CXX_HAVE_OSX_SECURITY
28 #error "This file should not be included ..."
31 #include <CoreFoundation/CoreFoundation.h>
32 #include <Security/Security.h>
64 retain(inReleaser.m_typeRef);
70 if (typeRef != m_typeRef) {
80 retain(inReleaser.m_typeRef);
105 return m_typeRef ==
nullptr;
111 return m_typeRef !=
nullptr;
120 if (typeRef !=
nullptr) {
130 T typeRef = m_typeRef;
138 if (m_typeRef !=
nullptr) {
139 CFRelease(m_typeRef);
154 #endif // NDN_SECURITY_TPM_HELPER_OSX_HPP
bool operator==(const std::nullptr_t &)
Copyright (c) 2013-2016 Regents of the University of California.
CFReleaser & operator=(const CFReleaser &inReleaser)
bool operator!=(const std::nullptr_t &)
void retain(const T &typeRef)
Helper class to wrap CoreFoundation object pointers.
CFReleaser & operator=(const T &typeRef)
CFReleaser< SecKeyRef > KeyRefOsx
CFReleaser(const CFReleaser &inReleaser)
CFReleaser(const T &typeRef)