mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-12-01 02:04:14 +00:00
Rename functions in libgamestream and provide better error handling
This commit is contained in:
1 parent
0b02016a6c
commit
c18bd2d194
15 files changed
+302
-187
No files matched your search
@@ -16,20 +16,17 @@
|
||||
* along with Moonlight; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef Limelight_mkcert_h
|
||||
#define Limelight_mkcert_h
|
||||
#pragma once
|
||||
|
||||
#include <openssl/x509v3.h>
|
||||
#include <openssl/pkcs12.h>
|
||||
|
||||
typedef struct CertKeyPair {
|
||||
typedef struct _CERT_KEY_PAIR {
|
||||
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
|
||||
} CERT_KEY_PAIR, *PCERT_KEY_PAIR;
|
||||
|
||||
CERT_KEY_PAIR mkcert_generate();
|
||||
void mkcert_free(CERT_KEY_PAIR);
|
||||
void mkcert_save(const char* certFile, const char* p12File, const char* keyPairFile, CERT_KEY_PAIR certKeyPair);
|
||||
Reference in new issue
Block a user