Home | History | Annotate | Download | only in dh

Lines Matching refs:dh

1 /* crypto/dh/dh_lib.c */
62 #include <openssl/dh.h>
83 int DH_set_method(DH *dh, const DH_METHOD *meth)
88 mtmp = dh->meth;
89 if (mtmp->finish) mtmp->finish(dh);
91 if (dh->engine)
93 ENGINE_finish(dh->engine);
94 dh->engine = NULL;
97 dh->meth = meth;
98 if (meth->init) meth->init(dh);
102 DH *DH_new(void)
107 DH *DH_new_method(ENGINE *engine)
109 DH *ret;
111 ret=(DH *)OPENSSL_malloc(sizeof(DH));
174 void DH_free(DH *r)
180 REF_PRINT("DH",r);
211 int DH_up_ref(DH *r)
215 REF_PRINT("DH",r);
234 int DH_set_ex_data(DH *d, int idx, void *arg)
239 void *DH_get_ex_data(DH *d, int idx)
244 int DH_size(const DH *dh)
246 return(BN_num_bytes(dh->p));