Sha256: e302587c7d247403b17672811642eccf3efa159d18857730d35164c90ac6b6f7

Contents?: true

Size: 608 Bytes

Versions: 79

Compression:

Stored size: 608 Bytes

Contents

PGHOST = "localhost"
PGDB = "test"
SOCKHOST = "it-trac.laika.com"
require("cipherstash-pg")
$stderr.puts("connecting to postgres://#{PGHOST}/#{PGDB}")
conn = CipherStashPG.connect(PGHOST, :dbname => (PGDB))
require("socket")
require("openssl")
$stderr.puts("Connecting to #{SOCKHOST}")
sock = TCPSocket.open(SOCKHOST, 443)
ctx = OpenSSL::SSL::SSLContext.new
sock = OpenSSL::SSL::SSLSocket.new(sock, ctx)
sock.sync_close = true
$stderr.puts("Attempting to connect...")
begin
  sock.connect
rescue Errno
  $stderr.puts("Got an error connecting, but no segfault.")
else
  $stderr.puts("Nope, no segfault!")
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
cipherstash-pg-1.0.0.beta.22-x86_64-linux ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.22-x86_64-darwin ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.22-arm64-darwin ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.22-aarch64-linux ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.21-x86_64-linux ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.21-aarch64-linux ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.21-arm64-darwin ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.21-x86_64-darwin ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.19-x86_64-linux ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.19-x86_64-darwin ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.19-arm64-darwin ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.19-aarch64-linux ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.18-x86_64-linux ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.18-x86_64-darwin ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.18-arm64-darwin ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.18-aarch64-linux ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.17-aarch64-linux ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.17-x86_64-darwin ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.17-x86_64-linux ./misc/openssl-pg-segfault.rb
cipherstash-pg-1.0.0.beta.17-arm64-darwin ./misc/openssl-pg-segfault.rb