1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-08 19:44:06 +00:00

1. Added NULL check on util_to_cer

2. Added digest() to tls.GenerateCertificate()
3. Added first rev of Simulated Server, for Agent Self Update Test
This commit is contained in:
Bryan Roe
2022-06-06 23:50:09 -07:00
parent d8e6e7f3ab
commit dec0fcb5c0
3 changed files with 155 additions and 1 deletions

View File

@@ -549,7 +549,7 @@ void __fastcall util_freecert(struct util_cert* cert)
int __fastcall util_to_cer(struct util_cert cert, char** data)
{
*data = NULL;
if (data != NULL) { *data = NULL; }
return i2d_X509(cert.x509, (unsigned char**)data);
}