rabbitmq 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rabbitmq/ffi.rb +12 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4e267fdbae8d3ad4e67c1ad608a98f28ad53310
|
4
|
+
data.tar.gz: 11a314ccc79d99a1d1fadcb33c0b2faa5beca282
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22d8f50492ac62a77b12f403117db899939f00857275a66f2a769e367fa01bde2022fd929c0195e38c04d6b3d5ac88f71e61f6227dbbb0480e21762204617997
|
7
|
+
data.tar.gz: 112db78913fb348600cf4fd468b45274da40da276ea0cbbcd150ab6bc159c840793273cff30522ee6f5c70e60c16631762dd8e8a8131c14982e6a7a6e79de192
|
data/lib/rabbitmq/ffi.rb
CHANGED
@@ -811,12 +811,18 @@ module RabbitMQ
|
|
811
811
|
attach_function :amqp_tcp_socket_new, [ConnectionState], :pointer, **opts
|
812
812
|
attach_function :amqp_tcp_socket_set_sockfd, [:pointer, :int], :void, **opts
|
813
813
|
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
814
|
+
begin # SSL support is optional
|
815
|
+
attach_function :amqp_ssl_socket_new, [ConnectionState], :pointer, **opts
|
816
|
+
attach_function :amqp_ssl_socket_set_cacert, [:pointer, :string], Status, **opts
|
817
|
+
attach_function :amqp_ssl_socket_set_key, [:pointer, :string, :string], Status, **opts
|
818
|
+
attach_function :amqp_ssl_socket_set_key_buffer, [:pointer, :string, :pointer, :size_t], Status, **opts
|
819
|
+
attach_function :amqp_ssl_socket_set_verify, [:pointer, Boolean], :void, **opts
|
820
|
+
attach_function :amqp_set_initialize_ssl_library, [Boolean], :void, **opts
|
821
|
+
@has_ssl = true
|
822
|
+
rescue LoadError
|
823
|
+
@has_ssl = false
|
824
|
+
end
|
825
|
+
def self.has_ssl?; @has_ssl; end
|
820
826
|
end
|
821
827
|
end
|
822
828
|
end
|