diff options
| author | markus <> | 2002-09-05 12:51:52 +0000 |
|---|---|---|
| committer | markus <> | 2002-09-05 12:51:52 +0000 |
| commit | 5514995a9d5ed91db089875adb509c7781357c0e (patch) | |
| tree | 2484410a46ba6c05ef94c253da36fbceef990b64 /src/lib/libcrypto/lhash | |
| parent | fd9566423b542798f5c8b06e68101a9ea5bb9885 (diff) | |
| download | openbsd-5514995a9d5ed91db089875adb509c7781357c0e.tar.gz openbsd-5514995a9d5ed91db089875adb509c7781357c0e.tar.bz2 openbsd-5514995a9d5ed91db089875adb509c7781357c0e.zip | |
import openssl-0.9.7-beta1
Diffstat (limited to 'src/lib/libcrypto/lhash')
| -rw-r--r-- | src/lib/libcrypto/lhash/lh_test.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/lhash/num.pl | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libcrypto/lhash/lh_test.c b/src/lib/libcrypto/lhash/lh_test.c index 294b42bc82..85700c859b 100644 --- a/src/lib/libcrypto/lhash/lh_test.c +++ b/src/lib/libcrypto/lhash/lh_test.c | |||
| @@ -59,7 +59,7 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 60 | #include <stdlib.h> |
| 61 | #include <string.h> | 61 | #include <string.h> |
| 62 | #include "lhash.h" | 62 | #include <openssl/lhash.h> |
| 63 | 63 | ||
| 64 | main() | 64 | main() |
| 65 | { | 65 | { |
| @@ -75,9 +75,8 @@ main() | |||
| 75 | buf[0]='\0'; | 75 | buf[0]='\0'; |
| 76 | fgets(buf,256,stdin); | 76 | fgets(buf,256,stdin); |
| 77 | if (buf[0] == '\0') break; | 77 | if (buf[0] == '\0') break; |
| 78 | buf[256]='\0'; | ||
| 79 | i=strlen(buf); | 78 | i=strlen(buf); |
| 80 | p=Malloc(i+1); | 79 | p=OPENSSL_malloc(i+1); |
| 81 | memcpy(p,buf,i+1); | 80 | memcpy(p,buf,i+1); |
| 82 | lh_insert(conf,p); | 81 | lh_insert(conf,p); |
| 83 | } | 82 | } |
diff --git a/src/lib/libcrypto/lhash/num.pl b/src/lib/libcrypto/lhash/num.pl index 4d937c1f90..30fedf9cd5 100644 --- a/src/lib/libcrypto/lhash/num.pl +++ b/src/lib/libcrypto/lhash/num.pl | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #!/usr/bin/perl | 1 | #!/usr/local/bin/perl |
| 2 | 2 | ||
| 3 | #node 10 -> 4 | 3 | #node 10 -> 4 |
| 4 | 4 | ||
