2014-10-16 21:20:27 -04:00
|
|
|
//
|
|
|
|
|
// mkcert.h
|
2015-05-12 21:48:30 -04:00
|
|
|
// Moonlight
|
2014-10-16 21:20:27 -04:00
|
|
|
//
|
|
|
|
|
// Created by Diego Waxemberg on 10/16/14.
|
2015-05-12 21:48:30 -04:00
|
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
2014-10-16 21:20:27 -04:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef Limelight_mkcert_h
|
|
|
|
|
#define Limelight_mkcert_h
|
|
|
|
|
|
|
|
|
|
#include <openssl/x509v3.h>
|
2014-10-19 04:19:54 -04:00
|
|
|
#include <openssl/pkcs12.h>
|
2014-10-16 21:20:27 -04:00
|
|
|
|
|
|
|
|
typedef struct CertKeyPair {
|
|
|
|
|
X509 *x509;
|
|
|
|
|
EVP_PKEY *pkey;
|
2014-10-19 04:19:54 -04:00
|
|
|
PKCS12 *p12;
|
2014-10-16 21:20:27 -04:00
|
|
|
} CertKeyPair;
|
|
|
|
|
|
2018-02-19 14:26:12 -08:00
|
|
|
struct CertKeyPair generateCertKeyPair(void);
|
2014-10-16 21:20:27 -04:00
|
|
|
void freeCertKeyPair(CertKeyPair);
|
|
|
|
|
#endif
|
2014-10-19 04:19:54 -04:00
|
|
|
|