Lines Matching defs:dh
153 #include <openssl/dh.h>
412 DH *dh;
736 dh=get_dh1024dsa();
739 dh=get_dh1024();
741 dh=get_dh512();
742 SSL_CTX_set_tmp_dh(s_ctx,dh);
743 DH_free(dh);
2161 DH *dh;
2163 if ((dh=DH_new()) == NULL) return(NULL);
2164 dh->p=BN_bin2bn(dh512_p,sizeof(dh512_p),NULL);
2165 dh->g=BN_bin2bn(dh512_g,sizeof(dh512_g),NULL);
2166 if ((dh->p == NULL) || (dh->g == NULL))
2167 { DH_free(dh); return(NULL); }
2168 return(dh);
2189 DH *dh;
2191 if ((dh=DH_new()) == NULL) return(NULL);
2192 dh->p=BN_bin2bn(dh1024_p,sizeof(dh1024_p),NULL);
2193 dh->g=BN_bin2bn(dh1024_g,sizeof(dh1024_g),NULL);
2194 if ((dh->p == NULL) || (dh->g == NULL))
2195 { DH_free(dh); return(NULL); }
2196 return(dh);
2227 DH *dh;
2229 if ((dh=DH_new()) == NULL) return(NULL);
2230 dh->p=BN_bin2bn(dh1024_p,sizeof(dh1024_p),NULL);
2231 dh->g=BN_bin2bn(dh1024_g,sizeof(dh1024_g),NULL);
2232 if ((dh->p == NULL) || (dh->g == NULL))
2233 { DH_free(dh); return(NULL); }
2234 dh->length = 160;
2235 return(dh);