summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/constraint.c
AgeCommit message (Expand)Author
2022-11-27Once we are synced, we can validate the certificate in the standard way.Otto Moerbeek
2022-01-07If no date could be parsed, bail out early and fix an error return thatOtto Moerbeek
2021-07-16Remove unneeded call to tls_init(3)kn
2021-03-18Remove duplicate prototype.Alexander Bluhm
2020-02-20Typo in log messageOtto Moerbeek
2020-02-12If constraints are configured but do not work for whatever reason ntpdOtto Moerbeek
2019-07-161) Re-resolve and re-get constraints once the clock is synced. ConstraintsOtto Moerbeek
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-06-16Be more aggressive retrying dns while in settime mode. The constraintOtto Moerbeek
2019-06-09Introducing autmatic settime mode: if some preconditions are metOtto Moerbeek
2019-05-30Use proper algorithm for median computation; use fabs() for computingOtto Moerbeek
2019-05-28A step in solving the bootstrap problem in a dnssec environement.Otto Moerbeek
2019-01-21Improve logging for TLS certificate validity checking.Joel Sing
2019-01-21Explicitly check timegm() return value.Joel Sing
2019-01-21Perform manual validity checking of the X.509 certificate for constraints.Joel Sing
2019-01-20Don't use *a - *b as compare idiom, it does not work as expected forOtto Moerbeek
2018-11-29update for libtls default cert changes.Ted Unangst
2018-11-06Use TLS_CA_CERT_FILE instead of a separate define.Joel Sing
2018-11-05Be stricter with TLS configuration for ntpd constraints.Joel Sing
2016-12-05Use the stack to hold the constraint child process variables instead ofRafael Zalamena
2016-10-18Check for EAGAIN on imsg_flush() return otherwise we might be failingRafael Zalamena
2016-10-18Save the constraint process pid by getting the start_child() return value,Rafael Zalamena
2016-09-26Teach ntpd(8) constraint process to use exec*() instead of just forking,Rafael Zalamena
2016-09-14Add clarifications ("comments") to three places where it wasn'tReyk Floeter
2016-07-13Adjust existing tls_config_set_cipher() callers for TLS cipher groupJoel Sing
2016-06-01ntpd is too aggressive about retrying constraint connections. ThisTheo de Raadt
2016-05-21Harden TLS for ntpd constraints - stop disabling server name verification,Joel Sing
2016-05-06Unconfuse things by renaming variables to match their contents.Joel Sing
2016-03-05According to RFC7231, section 7.1.1.1, the HTTP date header supportsChristian Weisgerber
2016-01-27Don't attempt to kill() the constraint in the wrong process. TheReyk Floeter
2015-12-19Switch and sync to the log.c variant from httpd/relayd/iked/snmpd/vmd.Reyk Floeter
2015-12-05EAGAIN handling for imsg_read. OK henning@ benno@Claudio Jeker
2015-11-24Cache values from getpwnam() done at initialization, which need to beTheo de Raadt
2015-11-19Simplify all instances of get_string() and get_data() using malloc() andmmcc
2015-11-17fix memory leak; from David CARLIERTheo de Raadt
2015-10-12Move execution of the constraints from the ntp to the parent process.Reyk Floeter
2015-10-09Once the constraint engine process is running, it only needsTheo de Raadt
2015-09-10fix type and return check for tls_read/write.Bob Beck
2015-09-10fix after libtls api changesBob Beck
2015-09-09Fix memory leak in error path when max length exceeded.Todd C. Miller
2015-07-18Handle short writes and TLS_{READ,WRITE}_AGAIN around tls_write().Alexander Bluhm
2015-07-18prevent the tls constraint state machine from getting hung on STATE_INVALIDBrent Cook
2015-05-28detect crashes from constraint sub-processes, instead of ignoring them.Theo de Raadt
2015-05-21No need to call tzset() and log_init() in the forked constraintReyk Floeter
2015-05-18Currently, after 4 failed constraint checks, we suspect the constraintReyk Floeter
2015-05-17When resolving the "constraint" (singular), store all returned IPReyk Floeter
2015-04-21fix a memory leak if tls_read() fails. ok henning@Jonathan Gray
2015-03-14remove unused 'cause' string when checking child statusBrent Cook
2015-02-22Rename tls_config_insecure_noverifyhost() toJoel Sing
2015-02-22Set the TLS ciphers to "compat" mode, restoring the previous behaviour.Joel Sing