]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Switch deprecation method for SRP
authorRichard Levitte <levitte@openssl.org>
Fri, 20 Nov 2020 09:09:15 +0000 (10:09 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 4 Dec 2020 19:44:24 +0000 (20:44 +0100)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13460)

include/openssl/srp.h.in

index 619816c65fd4289b112860e60d17600d49986836..8ddee32df363ae12599e5efd9c41d84854d89fc6 100644 (file)
@@ -98,7 +98,10 @@ int SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file);
 
 int SRP_VBASE_add0_user(SRP_VBASE *vb, SRP_user_pwd *user_pwd);
 /* This method ignores the configured seed and fails for an unknown user. */
-DEPRECATEDIN_1_1_0(SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username))
+# ifndef OPENSSL_NO_DEPRECATED_1_1_0
+OSSL_DEPRECATEDIN_1_1_0
+SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username);
+# endif
 /* NOTE: unlike in SRP_VBASE_get_by_user, caller owns the returned pointer.*/
 SRP_user_pwd *SRP_VBASE_get1_by_user(SRP_VBASE *vb, char *username);