-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an integration test for NTP #1369
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test is currently failing due to a missing symbol?
/usr/bin/ld: ../libntp/libntp.a(a_md5encrypt.o): in function `cmac_ctx_size':
/home/runner/work/aws-lc/aws-lc/NTP_BUILD_ROOT/ntp-4.2.8p17/libntp/a_md5encrypt.c:35: undefined reference to `CMAC_CTX_get0_cipher_ctx'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1110: ntpd] Error 1
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1369 +/- ##
==========================================
- Coverage 76.84% 76.80% -0.05%
==========================================
Files 424 424
Lines 71410 71412 +2
==========================================
- Hits 54876 54846 -30
- Misses 16534 16566 +32 ☔ View full report in Codecov by Sentry. |
Add CMAC_CTX_get0_cipher_ctx for NTP, and add an integration test that builds NTP with AWS-LC.
Issues:
Resolves CryptoAlg-2187
Description of changes:
With #1354 and #1355 AWS-LC is compatible with the latest version of NTP. This change adds a test to make sure we continue to work.
Call-outs:
AWS-LC already defines
OPENSSL_NO_MDC2
in our public header files, however NTP currently doesn't check for that in their digest tests and expects to use MDC2. For now I added a patch to update the test and checkOPENSSL_NO_MDC2
is not defined.NTP does not have an up to date GitHub mirror, it seems like the easiest way to get the code is from https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/. Right now the integration script is hard coded to download 4.2.8p17 which is the latest right now.
Testing:
Built and ran locally.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.