Skip to content

Commit

Permalink
crypto,ssl: improve help messages for removed functions
Browse files Browse the repository at this point in the history
* One help message refers to nonexistent functions.
* Unify function formats in help messages (use Mod:Fun/Arity everywhere
  where possible).

Signed-off-by: Peter Lemenkov <[email protected]>
  • Loading branch information
lemenkov committed Aug 12, 2024
1 parent 2ffcb7f commit 79a55f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/crypto/src/crypto.erl
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ end
%% Old interface. Now implemented with the New interface.
%% Removed in OTP-24.0 See OTP-16232 (deprecation) and OTP-16656 (removal)
-removed([{crypto_dyn_iv_init, 3, "not supported, use crypto_init/4"},
{crypto_dyn_iv_update, 3, "not supported, use crypto_update/2"},
-removed([{crypto_dyn_iv_init, 3, "not supported, use crypto:crypto_init/4"},
{crypto_dyn_iv_update, 3, "not supported, use crypto:crypto_update/2"},
{next_iv, '_', "see the 'New and Old API' chapter of the CRYPTO User's guide"},
{hmac, 3, "use crypto:mac/4 instead"},
{hmac, 4, "use crypto:macN/5 instead"},
Expand Down
6 changes: 3 additions & 3 deletions lib/ssl/src/ssl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ Special Erlang node configuration for the application can be found in
-deprecated_type([{prf_random, 0,"Only used in deprecated function prf/5 and will no longer be needed."}]).

-removed({ssl_accept, '_',
"use ssl_handshake/1,2,3 instead"}).
"use ssl:handshake/1,2,3 instead"}).
-removed({cipher_suites, 0,
"use cipher_suites/2,3 instead"}).
"use ssl:cipher_suites/2,3 instead"}).
-removed({cipher_suites, 1,
"use cipher_suites/2,3 instead"}).
"use ssl:cipher_suites/2,3 instead"}).
-removed([{negotiated_next_protocol,1,
"use ssl:negotiated_protocol/1 instead"}]).
-removed([{connection_info,1,
Expand Down

0 comments on commit 79a55f5

Please sign in to comment.