wbond / oscrypto

Compiler-free Python crypto library backed by the OS, supporting CPython and PyPy
MIT License
318 stars 71 forks source link

Remove _STACK struct definition from _openssl #14

Closed wbond closed 8 years ago

wbond commented 8 years ago

Instead of defining the struct contents, which are liable to change, sk_num() and sk_value() should be used instead.

OpenSSL 0.9.8y:

int sk_num(const STACK *);
char *sk_value(const STACK *, int);

OpenSSL 1.1.0:

int sk_num(const _STACK *);
void *sk_value(const _STACK *, int);
wbond commented 8 years ago

This was implemented with 255dd8dafcac56108fcc807f3a2d9459c392c24f