implemented cert and keypair gen

This commit is contained in:
Diego Waxemberg
2014-10-16 21:20:27 -04:00
parent fba676c405
commit bd91d74de8
6 changed files with 430 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
//
// 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>
typedef struct CertKeyPair {
X509 *x509;
EVP_PKEY *pkey;
} CertKeyPair;
struct CertKeyPair generateCertKeyPair();
void freeCertKeyPair(CertKeyPair);
void saveCertKeyPair(const char* certFile, const char* keyPairFile, CertKeyPair certKeyPair);
#endif