From: Brian Candler Date: 2005-07-06T22:11:25+09:00 Subject: changes needed by openssl-0.9.8 A few changes are needed for ruby to compile with the newly-released openssl-0.9.8, and I thought I'd post them here in case it saves someone else looking for them. 1. Whenever you #include , or , you first have to #include . This is because these headers now reference size_t without pulling in themselves. [Perhaps this will be treated as a bug in openssl and fixed] 2. There's been a change to the structure of certificate validation flags. I just made this quick change to allow it to compile: --- ruby-1.8.2.orig/ext/openssl/ossl_x509store.c Sun Dec 19 08:28:32 2004 +++ ruby-1.8.2/ext/openssl/ossl_x509store.c Wed Jul 6 14:06:10 2005 @@ -538,7 +538,7 @@ if(NIL_P(time)) { GetX509StCtx(self, store); - store->flags &= ~X509_V_FLAG_USE_CHECK_TIME; + store->param->flags &= ~X509_V_FLAG_USE_CHECK_TIME; } else { long t = NUM2LONG(rb_Integer(time)); However I'm not sure if this is right (e.g. should it check store->param is non-null first?), and in any case, a conditional compile on the openssl version will now be required. Regards, Brian.