mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-01 23:35:59 +00:00
parent
b88cf14b4e
commit
997525c71e
@ -96,6 +96,7 @@ static NSData* p12 = nil;
|
|||||||
|
|
||||||
bio = BIO_new(BIO_s_mem());
|
bio = BIO_new(BIO_s_mem());
|
||||||
i2d_X509_bio(bio, x509);
|
i2d_X509_bio(bio, x509);
|
||||||
|
X509_free(x509);
|
||||||
|
|
||||||
BUF_MEM* mem;
|
BUF_MEM* mem;
|
||||||
BIO_get_mem_ptr(bio, &mem);
|
BIO_get_mem_ptr(bio, &mem);
|
||||||
@ -222,6 +223,7 @@ static NSData* p12 = nil;
|
|||||||
+ (NSData *)getSignatureFromCert:(NSData *)cert {
|
+ (NSData *)getSignatureFromCert:(NSData *)cert {
|
||||||
BIO* bio = BIO_new_mem_buf([cert bytes], (int)[cert length]);
|
BIO* bio = BIO_new_mem_buf([cert bytes], (int)[cert length]);
|
||||||
X509* x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL);
|
X509* x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL);
|
||||||
|
BIO_free(bio);
|
||||||
|
|
||||||
if (!x509) {
|
if (!x509) {
|
||||||
Log(LOG_E, @"Unable to parse certificate in memory!");
|
Log(LOG_E, @"Unable to parse certificate in memory!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user