mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-22 04:03:19 +00:00
26 lines
553 B
C
26 lines
553 B
C
//
|
|
// mkcert.h
|
|
// Limelight
|
|
//
|
|
// Created by Diego Waxemberg on 10/16/14.
|
|
// Copyright (c) 2014 Limelight Stream. All rights reserved.
|
|
//
|
|
|
|
#ifndef Limelight_mkcert_h
|
|
#define Limelight_mkcert_h
|
|
|
|
#include <openssl/x509v3.h>
|
|
#include <openssl/pkcs12.h>
|
|
|
|
typedef struct CertKeyPair {
|
|
X509 *x509;
|
|
EVP_PKEY *pkey;
|
|
PKCS12 *p12;
|
|
} CertKeyPair;
|
|
|
|
struct CertKeyPair generateCertKeyPair();
|
|
void freeCertKeyPair(CertKeyPair);
|
|
void saveCertKeyPair(const char* certFile, const char* p12File, const char* keyPairFile, CertKeyPair certKeyPair);
|
|
#endif
|
|
|