X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fui%2Fui_compat.h;h=b35c9bb7fd3163202db96ed9c486ec77c08c81d4;hp=a7f62a47513a97db1e5b78d52750011b73206a69;hb=e527201f6be3c295358bcc8b6bafec598f02dc97;hpb=c2e4f17c1a0d4d5115c6ede9492de1615fe392ac diff --git a/crypto/ui/ui_compat.h b/crypto/ui/ui_compat.h index a7f62a4751..b35c9bb7fd 100644 --- a/crypto/ui/ui_compat.h +++ b/crypto/ui/ui_compat.h @@ -61,9 +61,6 @@ #include #include -#ifndef OPENSSL_NO_DES -#include -#endif #ifdef __cplusplus extern "C" { @@ -72,14 +69,13 @@ extern "C" { /* The following functions were previously part of the DES section, and are provided here for backward compatibility reasons. */ -#ifndef OPENSSL_NO_DES -int des_read_password(DES_cblock *key,const char *prompt,int verify); -int des_read_2passwords(DES_cblock *key1,DES_cblock *key2, - const char *prompt,int verify); -#endif +#define des_read_pw_string(b,l,p,v) \ + _ossl_old_des_read_pw_string((b),(l),(p),(v)) +#define des_read_pw(b,bf,s,p,v) \ + _ossl_old_des_read_pw((b),(bf),(s),(p),(v)) -int des_read_pw_string(char *buf,int length,const char *prompt,int verify); -int des_read_pw(char *buf,char *buff,int size,const char *prompt,int verify); +int _ossl_old_des_read_pw_string(char *buf,int length,const char *prompt,int verify); +int _ossl_old_des_read_pw(char *buf,char *buff,int size,const char *prompt,int verify); #ifdef __cplusplus }