zenchild / gssapi

A Ruby FFI wrapper around GSSAPI
Other
40 stars 50 forks source link

Avoid redefinition of struct layout #35

Open beechtom opened 3 years ago

beechtom commented 3 years ago

This adds a guard that prevents the redefinition of the GSSAPI::LibGSSAPI::GssOID struct's layout. Previously, the class would call the layout method and redefine the layout each time the class was referenced. This behavior is deprecated in FFI >= 1.12.0 and will be disallowed in FFI >= 2.0.

This fixes #34

beechtom commented 3 years ago

@zenchild Just commenting to bring this to your attention. Hoping it can be reviewed and released soon. 🤞