* [Bug 2597] leap file processing -- loose ends.
+* [Bug 2619] Save a signed int copy of the return value of i2d_DSA_SIG().
+ Provide missing msyslog() message in crypto_alice().
* Fix a variable lifetime issue.
(4.2.7p445) 2014/06/12 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 2556] mrulist isn't mentioned in the ntpq man page.
/*
* The identity parameters must have correct format and content.
*/
- if (peer->ident_pkey == NULL)
+ if (peer->ident_pkey == NULL) {
+ msyslog(LOG_NOTICE, "crypto_alice: scheme unavailable");
return (XEVNT_ID);
+ }
if ((dsa = peer->ident_pkey->pkey->pkey.dsa) == NULL) {
msyslog(LOG_NOTICE, "crypto_alice: defective key");
BIGNUM *r, *k, *g, *y;
u_char *ptr;
u_int len;
+ int s_len;
/*
* If the GQ parameters are not valid, something awful
* Encode the values in ASN.1 and sign. The filestamp is from
* the local file.
*/
- len = i2d_DSA_SIG(sdsa, NULL);
- if (len <= 0) {
+ len = s_len = i2d_DSA_SIG(sdsa, NULL);
+ if (s_len <= 0) {
msyslog(LOG_ERR, "crypto_bob2: %s",
ERR_error_string(ERR_get_error(), NULL));
DSA_SIG_free(sdsa);