[ruby-cvs:62308] rhe:r55145 (trunk): openssl: avoid deprecated M_ASN1_* macros

rhe at ruby-lang.org rhe at ruby-lang.org
Tue May 24 21:39:57 JST 2016


rhe	2016-05-24 21:39:57 +0900 (Tue, 24 May 2016)

  New Revision: 55145

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55145

  Log:
    openssl: avoid deprecated M_ASN1_* macros
    
    * ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): Use
      ASN1_OCTET_STRING_set() instead of M_ASN1_OCTET_STRING_set(). Macros
      prefixed by "M_" are discouraged to be used from outside OpenSSL
      library[1].
      (ossl_x509ext_get_value): Likewise, use ASN1_STRING_print() instead
      of M_ASN1_OCTET_STRING_print().
      [1] https://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=CHANGES;h=bf61913d7b01212b4d8b2f3c13d71d645914f67c;hb=b6079a7835f61daa9fb2cbf9addfa86049523933#l878
    
    * ext/openssl/ossl.h: Include openssl/asn1.h instead of
      openssl/asn1_mac.h. It just includes openssl/asn1.h and defines some
      additional "M_" macros.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl.h
    trunk/ext/openssl/ossl_x509ext.c


More information about the ruby-cvs mailing list