mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[crypto,key] add function to export PEM and create a key
* freerdp_key_generate creates a new key * freerdp_key_get_pem exports the key as PEM
This commit is contained in:
@@ -1115,7 +1115,7 @@ static DWORD WINAPI test_peer_mainloop(LPVOID arg)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
rdpPrivateKey* key = freerdp_key_new_from_file(info->key);
|
||||
rdpPrivateKey* key = freerdp_key_new_from_file_enc(info->key, NULL);
|
||||
if (!key)
|
||||
goto fail;
|
||||
if (!freerdp_settings_set_pointer_len(settings, FreeRDP_RdpServerRsaKey, key, 1))
|
||||
|
||||
Reference in New Issue
Block a user