[ntp:bk-ntp-dev-send] BitKeeper diffs

Harlan Stenn stenn at whimsy.udel.edu
Sat Jun 23 04:20:41 UTC 2007


#### ChangeSet ####
2007-06-23 00:18:26-04:00, stenn at whimsy.udel.edu 
  Add more assertions (Calypso)

==== ntpd/ntp_crypto.c ====
2007-06-23 00:18:15-04:00, stenn at whimsy.udel.edu +4 -1
  Add more assertions (Calypso)

--- 1.108/ntpd/ntp_crypto.c	2007-01-03 16:40:03 -05:00
+++ 1.109/ntpd/ntp_crypto.c	2007-06-23 00:18:15 -04:00
@@ -16,7 +16,8 @@
 #include "ntp_stdlib.h"
 #include "ntp_unixtime.h"
 #include "ntp_string.h"
-#include <ntp_random.h>
+#include "ntp_random.h"
+#include "ntp_assert.h"
 
 #include "openssl/asn1_mac.h"
 #include "openssl/bn.h"
@@ -3066,6 +3067,8 @@ cert_parse(
 	 * objects at this time, since the real crunch can happen only
 	 * when the time is valid but not yet certificated.
 	 */
+	NTP_INSIST(cert->cert_info != NULL);
+	NTP_INSIST(cert->cert_info->signature != NULL);
 	ret->nid = OBJ_obj2nid(cert->cert_info->signature->algorithm);
 	ret->digest = (const EVP_MD *)EVP_get_digestbynid(ret->nid);
 	ret->serial =


More information about the bk-ntp-dev-send mailing list