Skip to content

Instantly share code, notes, and snippets.

@eric1234
eric1234 / 2.0.0-p0-rbenv.patch
Last active August 29, 2015 14:04 — forked from thescouser89/1.8.7-rbenv.patch
Like the original 1.8.7 patch but for 2.0.0-p0
--- ext/openssl/ossl_pkey_ec.c
+++ ext/openssl/ossl_pkey_ec.c
@@ -762,8 +762,10 @@
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
@eric1234
eric1234 / 1.9.2-p320.patch
Last active August 29, 2015 14:02 — forked from thescouser89/1.8.7-rbenv.patch
Like the original 1.8.7 patch but for 1.9.2-p320
--- ext/openssl/ossl_pkey_ec.c
+++ ext/openssl/ossl_pkey_ec.c
@@ -761,8 +761,10 @@ static VALUE ossl_ec_group_initialize(in
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
@eric1234
eric1234 / getHTML.coffee
Created November 13, 2012 02:44 — forked from dandean/Element#getHtml.js
Adds outerHTML to Prototype
Element.addMethods 'getHtml': (element) ->
element = $ element
if 'outerHTML' of doc.documentElement
element.outerHTML
else
doc.documentElement('html').update(element.cloneNode(true)).innerHTML