Use sk_*_new_null() instead of sk_*_new(NULL). That avoids getting