mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-23 00:23:13 +01:00
24 lines
375 B
C
24 lines
375 B
C
#pragma once
|
|
|
|
#include <openssl/x509.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
const size_t kSHA1Length = 20;
|
|
|
|
struct WuSHA1Digest {
|
|
uint8_t bytes[kSHA1Length];
|
|
};
|
|
|
|
struct WuCert {
|
|
WuCert();
|
|
~WuCert();
|
|
|
|
EVP_PKEY* key;
|
|
X509* x509;
|
|
char fingerprint[96];
|
|
};
|
|
|
|
WuSHA1Digest WuSHA1(const uint8_t* src, size_t len, const void* key,
|
|
size_t keyLen);
|