1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/openssl/extconf.rb: use create_header.

* ext/openssl/ossl.h, ext/openssl/openssl_missing.h:
  include RUBY_EXTCONF_H.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
gotoyuzo 2006-06-02 10:03:16 +00:00
parent 5fc8821161
commit d995f01f67
4 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,10 @@
Fri Jun 2 19:00:40 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/extconf.rb: use create_header.
* ext/openssl/ossl.h, ext/openssl/openssl_missing.h:
include RUBY_EXTCONF_H.
Fri Jun 2 17:16:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri Jun 2 17:16:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (CLEANINGS): remove extconf.h by distclean if created. * lib/mkmf.rb (CLEANINGS): remove extconf.h by distclean if created.

View file

@ -117,5 +117,7 @@ have_struct_member("EVP_CIPHER_CTX", "engine", "openssl/evp.h")
have_struct_member("X509_ATTRIBUTE", "single", "openssl/x509.h") have_struct_member("X509_ATTRIBUTE", "single", "openssl/x509.h")
message "=== Checking done. ===\n" message "=== Checking done. ===\n"
create_header
create_makefile("openssl") create_makefile("openssl")
message "Done.\n" message "Done.\n"

View file

@ -8,6 +8,8 @@
* This program is licenced under the same licence as Ruby. * This program is licenced under the same licence as Ruby.
* (See the file 'LICENCE'.) * (See the file 'LICENCE'.)
*/ */
#include RUBY_EXTCONF_H
#if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ST_ENGINE) #if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ST_ENGINE)
# include <openssl/engine.h> # include <openssl/engine.h>
#endif #endif
@ -17,6 +19,8 @@
#include <string.h> /* memcpy() */ #include <string.h> /* memcpy() */
#include <openssl/hmac.h> #include <openssl/hmac.h>
#include "openssl_missing.h"
#if !defined(HAVE_HMAC_CTX_COPY) #if !defined(HAVE_HMAC_CTX_COPY)
int int
HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in) HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in)

View file

@ -11,6 +11,8 @@
#if !defined(_OSSL_H_) #if !defined(_OSSL_H_)
#define _OSSL_H_ #define _OSSL_H_
#include RUBY_EXTCONF_H
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #endif