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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user