summaryrefslogtreecommitdiff
path: root/sbin/isakmpd
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2000-01-30 21:01:50 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2000-01-30 21:01:50 +0000
commit82b2b843cb4933b7965a00629182a053f36835d2 (patch)
treed213514f87b89c930bbf9c277bcde6fe6103a997 /sbin/isakmpd
parent2832f3107028a1d364e34603bd1431c6ce72346c (diff)
Merge with EOM 1.108
author: niklas style
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r--sbin/isakmpd/ike_quick_mode.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/sbin/isakmpd/ike_quick_mode.c b/sbin/isakmpd/ike_quick_mode.c
index 4f8c78cd3e5..0607d61affa 100644
--- a/sbin/isakmpd/ike_quick_mode.c
+++ b/sbin/isakmpd/ike_quick_mode.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ike_quick_mode.c,v 1.25 2000/01/30 20:52:20 niklas Exp $ */
-/* $EOM: ike_quick_mode.c,v 1.107 2000/01/30 20:17:47 angelos Exp $ */
+/* $OpenBSD: ike_quick_mode.c,v 1.26 2000/01/30 21:01:49 niklas Exp $ */
+/* $EOM: ike_quick_mode.c,v 1.108 2000/01/30 21:03:46 niklas Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -161,18 +161,19 @@ check_policy (struct exchange *exchange, struct sa *sa, struct sa *isakmp_sa)
LC (RSA_free, (key));
return 0;
}
- princ2 = calloc(strlen(principal) + strlen("rsa-hex:") + 1, sizeof(char));
+ princ2 = calloc (strlen (principal) + strlen ("rsa-hex:") + 1,
+ sizeof (char));
if (princ2 == NULL)
{
log_print ("check_policy: failed to allocate memory for principal");
- free(principal);
+ free (principal);
LC (RSA_free, (key));
return 0;
}
- strcpy(princ2, "rsa-hex:");
- strcpy(princ2 + strlen("rsa-hex:"), principal);
- free(principal);
+ strcpy (princ2, "rsa-hex:");
+ strcpy (princ2 + strlen ("rsa-hex:"), principal);
+ free (principal);
LC (RSA_free, (key));
principal = princ2;
princ2 = NULL;
@@ -226,7 +227,7 @@ check_policy (struct exchange *exchange, struct sa *sa, struct sa *isakmp_sa)
/*
* XXX Currently, check_policy() is only called from message_negotiate_sa(),
- * and so this log message reflects this. Change to somethine better?
+ * and so this log message reflects this. Change to something better?
*/
if (result == 0)
log_print ("check_policy: negotiated SA failed policy check");