Blame rabbitmq-aws-0001-Rename-some-types-to-make-it-build-on-21.3.patch

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