diff options
author | beck <> | 2000-12-15 02:58:47 +0000 |
---|---|---|
committer | beck <> | 2000-12-15 02:58:47 +0000 |
commit | 9200bb13d15da4b2a23e6bc92c20e95b74aa2113 (patch) | |
tree | 5c52d628ec1e34be76e7ef2a4235d248b7c44d24 /src/lib/libcrypto/dh/dhtest.c | |
parent | e131d25072e3d4197ba4b9bcc0d1b27d34d6488d (diff) | |
download | openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.gz openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.bz2 openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.zip |
openssl-engine-0.9.6 merge
Diffstat (limited to 'src/lib/libcrypto/dh/dhtest.c')
-rw-r--r-- | src/lib/libcrypto/dh/dhtest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/dh/dhtest.c b/src/lib/libcrypto/dh/dhtest.c index d66c28455e..f0151253d7 100644 --- a/src/lib/libcrypto/dh/dhtest.c +++ b/src/lib/libcrypto/dh/dhtest.c | |||
@@ -140,7 +140,7 @@ int main(int argc, char *argv[]) | |||
140 | BIO_puts(out,"\n"); | 140 | BIO_puts(out,"\n"); |
141 | 141 | ||
142 | alen=DH_size(a); | 142 | alen=DH_size(a); |
143 | abuf=(unsigned char *)Malloc(alen); | 143 | abuf=(unsigned char *)OPENSSL_malloc(alen); |
144 | aout=DH_compute_key(abuf,b->pub_key,a); | 144 | aout=DH_compute_key(abuf,b->pub_key,a); |
145 | 145 | ||
146 | BIO_puts(out,"key1 ="); | 146 | BIO_puts(out,"key1 ="); |
@@ -152,7 +152,7 @@ int main(int argc, char *argv[]) | |||
152 | BIO_puts(out,"\n"); | 152 | BIO_puts(out,"\n"); |
153 | 153 | ||
154 | blen=DH_size(b); | 154 | blen=DH_size(b); |
155 | bbuf=(unsigned char *)Malloc(blen); | 155 | bbuf=(unsigned char *)OPENSSL_malloc(blen); |
156 | bout=DH_compute_key(bbuf,a->pub_key,b); | 156 | bout=DH_compute_key(bbuf,a->pub_key,b); |
157 | 157 | ||
158 | BIO_puts(out,"key2 ="); | 158 | BIO_puts(out,"key2 ="); |
@@ -170,8 +170,8 @@ int main(int argc, char *argv[]) | |||
170 | else | 170 | else |
171 | ret=0; | 171 | ret=0; |
172 | err: | 172 | err: |
173 | if (abuf != NULL) Free(abuf); | 173 | if (abuf != NULL) OPENSSL_free(abuf); |
174 | if (bbuf != NULL) Free(bbuf); | 174 | if (bbuf != NULL) OPENSSL_free(bbuf); |
175 | if(b != NULL) DH_free(b); | 175 | if(b != NULL) DH_free(b); |
176 | if(a != NULL) DH_free(a); | 176 | if(a != NULL) DH_free(a); |
177 | BIO_free(out); | 177 | BIO_free(out); |