OPENSSL_sk_set_cmp_func

Starting from OpenSSL v1.1.0, the sk_* functions are prefixed with OPENSSL_, so e.g. sk_num becomes OPENSSL_sk_num.

To cope with that and provide downstream with an easier interface to deal with, we always provide the OPENSSL_ methods, as they are just extern(C) anyway, and we either provide sk_* as aliases or extern (C).

The need for aliases comes from users of those binding, e.g. safestack.

  1. int function(const(void)*, const(void)*) OPENSSL_sk_set_cmp_func(_STACK* sk, ExternC!(int function(const(void)*, const(void)*)) c)
    extern (C) nothrow
    static if(OPENSSL_VERSION_AT_LEAST(1, 1))
    int function
    (
    const(void)*
    ,
    const(void)*
    )
    OPENSSL_sk_set_cmp_func
    (,
    ExternC!(int function
    (
    const(void)*
    ,
    const(void)*
    )
    )
    c
    )
  2. alias OPENSSL_sk_set_cmp_func = sk_set_cmp_func

Meta