Thanks, I fixed it already - I used roughly the same approach as usa :)


2012/12/20 U.Nakamura <usa / garbagecollect.jp>

> Hello,
>
> In message "[ruby-core:51006] Re: [ruby-trunk - Feature #6946] FIPS
> support?"
>     on Dec.20,2012 16:32:23, <martin.bosslet / gmail.com> wrote:
> > No, I forgot to #ifdef... sorry! Fixing...
>
> here is a patch.
>
> Index: ext/openssl/ossl_cipher.c
> ===================================================================
> --- ext/openssl/ossl_cipher.c   (revision 38491)
> +++ ext/openssl/ossl_cipher.c   (working copy)
> @@ -482,6 +482,7 @@ ossl_cipher_set_iv(VALUE self, VALUE iv)
>      return iv;
>  }
>
> +#ifdef EVP_CTRL_GCM_GET_TAG
>  /*
>   *  call-seq:
>   *     cipher.auth_data = string -> string
> @@ -644,6 +645,12 @@ ossl_cipher_is_authenticated(VALUE self)
>         return Qfalse;
>      }
>  }
> +#else /* EVP_CTRL_GCM_GET_TAG */
> +# define ossl_cipher_set_auth_data rb_f_notimplement
> +# define ossl_cipher_set_auth_tag rb_f_notimplement
> +# define ossl_cipher_get_auth_tag rb_f_notimplement
> +# define ossl_cipher_is_authenticated rb_f_notimplement
> +#endif /* EVP_CTRL_GCM_GET_TAG */
>
>  /*
>   *  call-seq:
>
> Regards,
> --
> U.Nakamura <usa / garbagecollect.jp>
>
>
>