Skip to content

Instantly share code, notes, and snippets.

View thescouser89's full-sized avatar
🇲🇺
The world is turnin', I hope it don't turn away

Dustin Kut thescouser89

🇲🇺
The world is turnin', I hope it don't turn away
View GitHub Profile
--- ext/openssl/ossl_pkey_ec.c
+++ ext/openssl/ossl_pkey_ec.c
@@ -757,8 +757,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+#if !defined(OPENSSl_NO_EC2M)
} else if (id == s_GF2m_simple) {
method = EC_GF2m_simple_method();
+#endif
@thescouser89
thescouser89 / haha.rb
Created July 5, 2013 01:11
Simple file to submit a PUT request Test server 'RESTful' server is just a simple rails app.
require "net/http"
uri = URI.parse(URI.encode('http://127.0.0.1:3000'))
req = Net::HTTP::Put.new('/users/1/')
req.set_form_data('user[user]' => 'rocket')
res = Net::HTTP.start(uri.hostname, uri.port) do |http|
http.request(req)
end