Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
UpnDbRealmRecord.hpp
1 /*
2 
3  BEGIN_COPYRIGHT
4 
5  Copyright (C) 1993-2013,2017-2018 Douglas Mark Royer, All Rights Reserved.
6 
7  NOTICE:
8 
9  THIS SOURCE CODE BELONGS TO DOUGLAS MARK ROYER THIS CODE IS PROPERTY
10  OF THE COPYRIGHT HOLDER AND IS NOT TO BE DIVULGED OR USED BY
11  PARTIES WHO HAVE NOT RECEIVED WRITTEN AUTHORIZATION FROM THE OWNER.
12 
13  THIS SOFTWARE AND MANUAL ARE BOTH PROTECTED BY UNITED STATES
14  COPYRIGHT LAW (TITLE 17 UNITED STATES CODE). UNAUTHORIZED REPRODUCTION
15  AND/OR SALE MAY RESULT IN IMPRISONMENT OF UP TO ONE YEAR AND FINES
16  OF UP TO $100,000 (17 USC 506). COPYRIGHT INFRINGERS MAY ALSO
17  BE SUBJECT TO CIVIL LIABILITY.
18 
19  THIS NOTICE AND THE ABOVE COPYRIGHT NOTICE MUST REMAIN IN ALL
20  COPIES AND ANY DERIVED WORK.
21 
22  ALL OF THIS CODE IS ORIGINAL WORK BY THE COPYRIGHT HOLDER.
23 
24  THIS DOCUMENT AND THE INFORMATION CONTAINED HEREIN IS PROVIDED
25  ON AN "AS IS" BASIS AND DOUGLAS MARK ROYER. DISCLAIM ALL WARRANTIES,
26  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT
27  THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
28  IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
29  PURPOSE.
30 
31  END_COPYRIGHT
32 */
33 
34 #ifndef __DOUGLAS_MARK_ROYER_LIBRARY_UPN_REALM_H__
35 #define __DOUGLAS_MARK_ROYER_LIBRARY_UPN_REALM_H__
36 
37 #include <wchar.h>
38 
39 #include <SaS/Common/osver.h>
40 
41 #ifndef EXPORT_UPN
42 #ifdef BUILDING_SAS_UPNDB_LIBRARY
43 #define EXPORT_UPN EXPORT_OUT
44 #else
45 #define EXPORT_UPN EXPORT_IN
46 #endif
47 #endif
48 
49 #ifdef BUILDING_SAS_UPNDB_LIBRARY
50 #include "UpnDbTypedefs.hpp"
51 #include "UpnDbXdrRealm.hpp"
52 #else
53 #include <SaS/UpnDb/UpnDbTypedefs.hpp>
54 #include <SaS/UpnDb/UpnDbXdrRealm.hpp>
55 #endif
56 
57 namespace SoftwareAndServices
58 {
59  namespace Library
60  {
61  namespace UPN
62  {
63 
67  class EXPORT_UPN UpnDbRealmRecord
68  : public UpnDbXdrRealm
69  {
70 
71  public:
72 
77 
81  virtual ~UpnDbRealmRecord();
82 
90  virtual bool Update(UpnDbAuthHandle_t Auth) const;
91 
99  virtual bool Add(UpnDbAuthHandle_t Auth);
100 
108  virtual bool Remove(UpnDbAuthHandle_t Auth);
109  };
110 
111  }
112  }
113 }
114 
115 extern "C" {
121  void InitUpnDbRealmRecord(SoftwareAndServices::Library::UPN::UpnDbRealmRecord * TheRecord);
122 
128  void FreeUpnDbRealmRecord(SoftwareAndServices::Library::UPN::UpnDbRealmRecord * TheRecord);
129 
130 }
131 
132 #endif /* __DOUGLAS_MARK_ROYER_LIBRARY_UPN_REALM_H__ */
Copyright Douglas Mark Royer DouglasRoyer@gmail.com.
Definition: Base.hpp:98