@@ -628,14 +628,14 @@ ossl_pkey_initialize_copy(VALUE self, VALUE other)
628
628
}
629
629
#endif
630
630
631
+ #ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
631
632
/*
632
633
* call-seq:
633
634
* OpenSSL::PKey.private_new(algo, string) -> PKey
634
635
*
635
636
* See the OpenSSL documentation for EVP_PKEY_new_raw_private_key()
636
637
*/
637
638
638
- #ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
639
639
static VALUE
640
640
ossl_pkey_initialize_private (VALUE self , VALUE type , VALUE key )
641
641
{
@@ -661,14 +661,14 @@ ossl_pkey_initialize_private(VALUE self, VALUE type, VALUE key)
661
661
}
662
662
#endif
663
663
664
+ #ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
664
665
/*
665
666
* call-seq:
666
667
* OpenSSL::PKey.public_new(algo, string) -> PKey
667
668
*
668
669
* See the OpenSSL documentation for EVP_PKEY_new_raw_public_key()
669
670
*/
670
671
671
- #ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
672
672
static VALUE
673
673
ossl_pkey_initialize_public (VALUE self , VALUE type , VALUE key )
674
674
{
@@ -881,14 +881,14 @@ ossl_pkey_private_to_pem(int argc, VALUE *argv, VALUE self)
881
881
return do_pkcs8_export (argc , argv , self , 0 );
882
882
}
883
883
884
+ #ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
884
885
/*
885
886
* call-seq:
886
887
* key.private_to_raw => string
887
888
*
888
889
* See the OpenSSL documentation for EVP_PKEY_get_raw_private_key()
889
890
*/
890
891
891
- #ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
892
892
static VALUE ossl_pkey_private_to_raw (VALUE self )
893
893
{
894
894
EVP_PKEY * pkey ;
@@ -957,14 +957,14 @@ ossl_pkey_public_to_pem(VALUE self)
957
957
return ossl_pkey_export_spki (self , 0 );
958
958
}
959
959
960
+ #ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
960
961
/*
961
962
* call-seq:
962
963
* key.public_to_raw => string
963
964
*
964
965
* See the OpenSSL documentation for EVP_PKEY_get_raw_public_key()
965
966
*/
966
967
967
- #ifdef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
968
968
static VALUE ossl_pkey_public_to_raw (VALUE self )
969
969
{
970
970
EVP_PKEY * pkey ;
0 commit comments