Skip to content

Commit 202cac7

Browse files
committed
Move #ifdev above doc comment
1 parent 80e9ef1 commit 202cac7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/openssl/ossl_pkey.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,14 +628,14 @@ ossl_pkey_initialize_copy(VALUE self, VALUE other)
628628
}
629629
#endif
630630

631+
#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
631632
/*
632633
* call-seq:
633634
* OpenSSL::PKey.private_new(algo, string) -> PKey
634635
*
635636
* See the OpenSSL documentation for EVP_PKEY_new_raw_private_key()
636637
*/
637638

638-
#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
639639
static VALUE
640640
ossl_pkey_initialize_private(VALUE self, VALUE type, VALUE key)
641641
{
@@ -661,14 +661,14 @@ ossl_pkey_initialize_private(VALUE self, VALUE type, VALUE key)
661661
}
662662
#endif
663663

664+
#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
664665
/*
665666
* call-seq:
666667
* OpenSSL::PKey.public_new(algo, string) -> PKey
667668
*
668669
* See the OpenSSL documentation for EVP_PKEY_new_raw_public_key()
669670
*/
670671

671-
#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
672672
static VALUE
673673
ossl_pkey_initialize_public(VALUE self, VALUE type, VALUE key)
674674
{
@@ -881,14 +881,14 @@ ossl_pkey_private_to_pem(int argc, VALUE *argv, VALUE self)
881881
return do_pkcs8_export(argc, argv, self, 0);
882882
}
883883

884+
#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
884885
/*
885886
* call-seq:
886887
* key.private_to_raw => string
887888
*
888889
* See the OpenSSL documentation for EVP_PKEY_get_raw_private_key()
889890
*/
890891

891-
#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
892892
static VALUE ossl_pkey_private_to_raw(VALUE self)
893893
{
894894
EVP_PKEY *pkey;
@@ -957,14 +957,14 @@ ossl_pkey_public_to_pem(VALUE self)
957957
return ossl_pkey_export_spki(self, 0);
958958
}
959959

960+
#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
960961
/*
961962
* call-seq:
962963
* key.public_to_raw => string
963964
*
964965
* See the OpenSSL documentation for EVP_PKEY_get_raw_public_key()
965966
*/
966967

967-
#ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
968968
static VALUE ossl_pkey_public_to_raw(VALUE self)
969969
{
970970
EVP_PKEY *pkey;

0 commit comments

Comments
 (0)