Lines Matching refs:dhm
22 DH_METHOD *dhm = OPENSSL_zalloc(sizeof(*dhm)); in DH_meth_new() local
24 if (dhm != NULL) { in DH_meth_new()
25 dhm->flags = flags; in DH_meth_new()
27 dhm->name = OPENSSL_strdup(name); in DH_meth_new()
28 if (dhm->name != NULL) in DH_meth_new()
29 return dhm; in DH_meth_new()
31 OPENSSL_free(dhm); in DH_meth_new()
37 void DH_meth_free(DH_METHOD *dhm) in DH_meth_free() argument
39 if (dhm != NULL) { in DH_meth_free()
40 OPENSSL_free(dhm->name); in DH_meth_free()
41 OPENSSL_free(dhm); in DH_meth_free()
45 DH_METHOD *DH_meth_dup(const DH_METHOD *dhm) in DH_meth_dup() argument
50 memcpy(ret, dhm, sizeof(*dhm)); in DH_meth_dup()
52 ret->name = OPENSSL_strdup(dhm->name); in DH_meth_dup()
62 const char *DH_meth_get0_name(const DH_METHOD *dhm) in DH_meth_get0_name() argument
64 return dhm->name; in DH_meth_get0_name()
67 int DH_meth_set1_name(DH_METHOD *dhm, const char *name) in DH_meth_set1_name() argument
74 OPENSSL_free(dhm->name); in DH_meth_set1_name()
75 dhm->name = tmpname; in DH_meth_set1_name()
80 int DH_meth_get_flags(const DH_METHOD *dhm) in DH_meth_get_flags() argument
82 return dhm->flags; in DH_meth_get_flags()
85 int DH_meth_set_flags(DH_METHOD *dhm, int flags) in DH_meth_set_flags() argument
87 dhm->flags = flags; in DH_meth_set_flags()
91 void *DH_meth_get0_app_data(const DH_METHOD *dhm) in DH_meth_get0_app_data() argument
93 return dhm->app_data; in DH_meth_get0_app_data()
96 int DH_meth_set0_app_data(DH_METHOD *dhm, void *app_data) in DH_meth_set0_app_data() argument
98 dhm->app_data = app_data; in DH_meth_set0_app_data()
102 int (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *) in DH_meth_get_generate_key() argument
104 return dhm->generate_key; in DH_meth_get_generate_key()
107 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key) (DH *)) in DH_meth_set_generate_key() argument
109 dhm->generate_key = generate_key; in DH_meth_set_generate_key()
113 int (*DH_meth_get_compute_key(const DH_METHOD *dhm)) in DH_meth_get_compute_key() argument
116 return dhm->compute_key; in DH_meth_get_compute_key()
119 int DH_meth_set_compute_key(DH_METHOD *dhm, in DH_meth_set_compute_key() argument
122 dhm->compute_key = compute_key; in DH_meth_set_compute_key()
127 int (*DH_meth_get_bn_mod_exp(const DH_METHOD *dhm)) in DH_meth_get_bn_mod_exp() argument
131 return dhm->bn_mod_exp; in DH_meth_get_bn_mod_exp()
134 int DH_meth_set_bn_mod_exp(DH_METHOD *dhm, in DH_meth_set_bn_mod_exp() argument
138 dhm->bn_mod_exp = bn_mod_exp; in DH_meth_set_bn_mod_exp()
142 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *) in DH_meth_get_init() argument
144 return dhm->init; in DH_meth_get_init()
147 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *)) in DH_meth_set_init() argument
149 dhm->init = init; in DH_meth_set_init()
153 int (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *) in DH_meth_get_finish() argument
155 return dhm->finish; in DH_meth_get_finish()
158 int DH_meth_set_finish(DH_METHOD *dhm, int (*finish) (DH *)) in DH_meth_set_finish() argument
160 dhm->finish = finish; in DH_meth_set_finish()
164 int (*DH_meth_get_generate_params(const DH_METHOD *dhm)) in DH_meth_get_generate_params() argument
167 return dhm->generate_params; in DH_meth_get_generate_params()
170 int DH_meth_set_generate_params(DH_METHOD *dhm, in DH_meth_set_generate_params() argument
173 dhm->generate_params = generate_params; in DH_meth_set_generate_params()