Lines Matching refs:DH
1 /* crypto/dh/dh_lib.c */
62 #include <openssl/dh.h>
96 int DH_set_method(DH *dh, const DH_METHOD *meth)
101 mtmp = dh->meth;
102 if (mtmp->finish) mtmp->finish(dh);
104 if (dh->engine)
106 ENGINE_finish(dh->engine);
107 dh->engine = NULL;
110 dh->meth = meth;
111 if (meth->init) meth->init(dh);
115 DH *DH_new(void)
120 DH *DH_new_method(ENGINE *engine)
122 DH *ret;
124 ret=(DH *)OPENSSL_malloc(sizeof(DH));
187 void DH_free(DH *r)
193 REF_PRINT("DH",r);
224 int DH_up_ref(DH *r)
228 REF_PRINT("DH",r);
247 int DH_set_ex_data(DH *d, int idx, void *arg)
252 void *DH_get_ex_data(DH *d, int idx)
257 int DH_size(const DH *dh)
259 return(BN_num_bytes(dh->p));