mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[crypto,key] do not deprecate new_from*
Do not deprecate the functions to read an unencrypted key from file or PEM. While the extended versions of the function now exist these still have their use.
This commit is contained in:
@@ -35,14 +35,10 @@ extern "C"
|
||||
WINPR_ATTR_MALLOC(freerdp_key_free, 1)
|
||||
FREERDP_API rdpPrivateKey* freerdp_key_new(void);
|
||||
|
||||
WINPR_DEPRECATED_VAR(
|
||||
"[since 3.16.0] use freerdp_key_new_from_file_enc",
|
||||
WINPR_ATTR_MALLOC(freerdp_key_free, 1)
|
||||
FREERDP_API rdpPrivateKey* freerdp_key_new_from_file(const char* keyfile));
|
||||
FREERDP_API rdpPrivateKey* freerdp_key_new_from_file(const char* keyfile);
|
||||
|
||||
WINPR_DEPRECATED_VAR("[since 3.16.0] use freerdp_key_new_from_pem_enc",
|
||||
WINPR_ATTR_MALLOC(freerdp_key_free, 1)
|
||||
FREERDP_API rdpPrivateKey* freerdp_key_new_from_pem(const char* pem));
|
||||
WINPR_ATTR_MALLOC(freerdp_key_free, 1)
|
||||
FREERDP_API rdpPrivateKey* freerdp_key_new_from_pem(const char* pem);
|
||||
|
||||
/** @brief Create a private key from file \b keyfile with optional password \b password
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user