LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
x509Certificate.hpp
Go to the documentation of this file.
1#pragma once
2#include <openssl/pem.h>
3#include <openssl/x509.h>
4#include <openssl/x509v3.h>
7#include <iostream>
8#include <memory>
9
10namespace logicalaccess
11{
12 class LLA_CRYPTO_API X509Certificate
13 {
14 public:
16 X509Certificate(std::string data);
18 void setData(std::string data);
19 std::string getRawData() const;
20 std::shared_ptr<PublicKey> getKey();
21 int verify(std::shared_ptr<PublicKey> key);
22 std::string getExpiryDate();
23 private:
24 void freeAllData();
26 std::string _rawData;
27 BIO *_bio;
28 std::shared_ptr<PublicKey> _key;
29 };
30}
Definition: x509Certificate.hpp:13
X509 * _certificate
Definition: x509Certificate.hpp:25
std::string _rawData
Definition: x509Certificate.hpp:26
BIO * _bio
Definition: x509Certificate.hpp:27
std::shared_ptr< PublicKey > _key
Definition: x509Certificate.hpp:28
Definition: asn1.hpp:9
OpenSSL global functions.