moonlight-ios/Limelight/Crypto/mkcert.h

24 lines
442 B
C
Raw Normal View History

2014-10-16 21:20:27 -04:00
//
// mkcert.h
// Moonlight
2014-10-16 21:20:27 -04:00
//
// Created by Diego Waxemberg on 10/16/14.
// 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;
struct CertKeyPair generateCertKeyPair(void);
2014-10-16 21:20:27 -04:00
void freeCertKeyPair(CertKeyPair);
#endif
2014-10-19 04:19:54 -04:00