From: Daniil Fedotov Date: Mon, 18 Mar 2019 18:29:08 -0400 Subject: [PATCH] Rename some types to make it build on 21.3. ssl_api.hrl does not contain types starting from 21.3. Use non-existent types instead. This will dyalize, but there is no type I know of, to fit both old and new types. diff --git a/include/rabbitmq_aws.hrl b/include/rabbitmq_aws.hrl index f6fffd8..a3e906e 100644 --- a/include/rabbitmq_aws.hrl +++ b/include/rabbitmq_aws.hrl @@ -8,8 +8,6 @@ %% @end %% ==================================================================== --include_lib("ssl/src/ssl_api.hrl"). - -define(MIME_AWS_JSON, "application/x-amz-json-1.0"). -define(SCHEME, https). @@ -27,7 +25,7 @@ -type expiration() :: calendar:datetime() | undefined. -type security_token() :: nonempty_string() | undefined. -type region() :: nonempty_string() | undefined. - +-type path() :: ssl:path(). -type sc_ok() :: {ok, access_key(), secret_access_key(), expiration(), security_token()}. -type sc_error() :: {error, Reason :: atom()}. @@ -72,7 +70,7 @@ -type headers() :: [header()]. -type body() :: string() | binary(). --type ssl_options() :: [ssl_option()]. +-type ssl_options() :: [ssl:ssl_option()]. -type http_option() :: {timeout, timeout()} | {connect_timeout, timeout()} |