aboutsummaryrefslogtreecommitdiff
path: root/crypto.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-01-07 03:21:49 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-01-07 03:21:49 +0000
commit513baee13d96cd200a6ed15a538774b768c2eac9 (patch)
treebe153ea0f4a09672b612aad21fafc23eb0919966 /crypto.c
parentVersion 2.1_beta8 released (diff)
downloadopenvpn-513baee13d96cd200a6ed15a538774b768c2eac9.tar.xz
Small fixes:
* Fixed variable declaration in crypto.c that is not at the head of a block. * Added library to Visual C makefile. * In server.conf config sample, add additional comment text on "dev tap" usage. * Added some short documentation on revoke-full script. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@877 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'crypto.c')
-rw-r--r--crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto.c b/crypto.c
index 21ff5d9..d0a4284 100644
--- a/crypto.c
+++ b/crypto.c
@@ -1012,6 +1012,7 @@ read_key_file (struct key2 *key2, const char *file, const unsigned int flags)
const char *error_filename = file;
/* parse info */
+ const char *cp;
int hb_index = 0;
int line_num = 1;
int line_index = 0;
@@ -1062,7 +1063,7 @@ read_key_file (struct key2 *key2, const char *file, const unsigned int flags)
close (fd);
}
- const char *cp = (char *)in.data;
+ cp = (char *)in.data;
while (size)
{
const char c = *cp;