Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cX509Reader.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_cX509Reader_H
6 #define _INC_cX509Reader_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 
11 #include "../File/cASNReader.h"
12 #include "../File/cASNSets.h"
13 #include "../File/cASNSequence.h"
15 
16 namespace GrayLib
17 {
19  {
22 
23  public:
24  cX509Reader(const BYTE* p = nullptr, size_t nLen = 0) noexcept
25  : cASNReader(p, nLen)
26  {
27  }
28  cX509Reader(const cASNBuf& b)
29  : cASNReader(b)
30  {
31  }
32 
33  HRESULT ReadVersionInt(OUT int& rnVer);
34  HRESULT ReadVersion(OUT int& rnVer);
35  HRESULT ReadSerialNumber(OUT cASNBuf& serial);
36  HRESULT ReadSignBuffer(OUT cASNBuf& sig);
37  HRESULT ReadExtHeader(ASN_TYPE nTag, OUT cASNBuf& ext);
38 
39  // Crt
40  HRESULT ReadCrtTimeRange(OUT cTimeUnits& from, OUT cTimeUnits& to);
41  HRESULT ReadCrtUID(OUT cASNBuf& uid, ASN_t nTag2);
42 
43  // Crl
44  HRESULT ReadCrlExt(OUT cASNBuf& ext);
45  HRESULT ReadCrlEntryExt(OUT cASNBuf& ext);
46  };
47 
48 }
49 
50 #endif
51 
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
Using X files without the sources and the makefile How to use you just create a debug directory e the sample3 directory must contain Sample3 Final Sample3 exe Sample3 Final Debug Sample3 Final Gfx OpenGL bmp Sample3 Final Gfx tiny_skin bmp Sample3 Final Gfx tiny_4anim x The source files have the DevCpp project file plus the makefile The demos use standard FreeGlut functions Technical without warranty Neither Paul Coppens nor GameDev net make any or either express or with respect to the their or fitness for a specific purpose neither Paul Coppens nor GameDev net shall have any liability to you or any other person or entity with respect to any or damage caused or alleged to have been caused directly or indirectly by the programs provided by Paul Coppens and GameDev net This but is not limited to
Definition: Readme.txt:39
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cASN.h:78
Definition: cASNReader.h:22
Definition: cX509Reader.h:19
cX509Reader(const cASNBuf &b)
Definition: cX509Reader.h:28
cX509Reader(const BYTE *p=nullptr, size_t nLen=0) noexcept
Definition: cX509Reader.h:24
Definition: cTimeUnits.h:146
Definition: cMesh.h:22
ASN_TYPE
Definition: cASN.h:22
BYTE ASN_t
Definition: cASN.h:75