ecdsa_method
typedef struct ecdsa_method ECDSA_METHOD;
ECDSA_METHOD *ecdsa_method;
if ((ecdsa_method = tls_signer_ecdsa_method()) == NULL ||
ECDSA_set_method(eckey, ecdsa_method) == 0) {
static ECDSA_METHOD *ecdsa_method = NULL;
if (ecdsa_method != NULL)
ecdsa_method = calloc(1, sizeof(*ecdsa_method));
if (ecdsa_method == NULL)
ecdsa_method->ecdsa_do_sign = tls_ecdsa_do_sign;
ecdsa_method->name = strdup("libtls ECDSA method");
if (ecdsa_method->name == NULL) {
free(ecdsa_method);
ecdsa_method = NULL;
return (ecdsa_method);