Skip to content

Commit

Permalink
Move #ifdev above doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sylph01 committed Jul 7, 2023
1 parent 80e9ef1 commit 202cac7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/openssl/ossl_pkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,14 +628,14 @@ ossl_pkey_initialize_copy(VALUE self, VALUE other)
}
#endif

#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
/*
* call-seq:
* OpenSSL::PKey.private_new(algo, string) -> PKey
*
* See the OpenSSL documentation for EVP_PKEY_new_raw_private_key()
*/

#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
static VALUE
ossl_pkey_initialize_private(VALUE self, VALUE type, VALUE key)
{
Expand All @@ -661,14 +661,14 @@ ossl_pkey_initialize_private(VALUE self, VALUE type, VALUE key)
}
#endif

#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
/*
* call-seq:
* OpenSSL::PKey.public_new(algo, string) -> PKey
*
* See the OpenSSL documentation for EVP_PKEY_new_raw_public_key()
*/

#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
static VALUE
ossl_pkey_initialize_public(VALUE self, VALUE type, VALUE key)
{
Expand Down Expand Up @@ -881,14 +881,14 @@ ossl_pkey_private_to_pem(int argc, VALUE *argv, VALUE self)
return do_pkcs8_export(argc, argv, self, 0);
}

#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
/*
* call-seq:
* key.private_to_raw => string
*
* See the OpenSSL documentation for EVP_PKEY_get_raw_private_key()
*/

#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
static VALUE ossl_pkey_private_to_raw(VALUE self)
{
EVP_PKEY *pkey;
Expand Down Expand Up @@ -957,14 +957,14 @@ ossl_pkey_public_to_pem(VALUE self)
return ossl_pkey_export_spki(self, 0);
}

#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
/*
* call-seq:
* key.public_to_raw => string
*
* See the OpenSSL documentation for EVP_PKEY_get_raw_public_key()
*/

#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
static VALUE ossl_pkey_public_to_raw(VALUE self)
{
EVP_PKEY *pkey;
Expand Down

0 comments on commit 202cac7

Please sign in to comment.