Skip to content

Commit

Permalink
Actually fix build
Browse files Browse the repository at this point in the history
Make printing the libcrypto version best-effort to handle interned builds.
  • Loading branch information
lrstewart committed Aug 5, 2024
1 parent cd86854 commit 5adf16f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/s2nc.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include "api/unstable/npn.h"
#include "api/unstable/renegotiate.h"
#include "common.h"
#include "crypto/s2n_openssl.h"
#include "error/s2n_errno.h"
#include "tls/s2n_connection.h"

Expand Down Expand Up @@ -564,7 +563,9 @@ int main(int argc, char *const *argv)
}

GUARD_EXIT(s2n_init(), "Error running s2n_init()");
#ifdef SSLEAY_VERSION
printf("libcrypto: %s\n", SSLeay_version(SSLEAY_VERSION));
#endif

if ((r = getaddrinfo(host, port, &hints, &ai_list)) != 0) {
fprintf(stderr, "error: %s\n", gai_strerror(r));
Expand Down
3 changes: 2 additions & 1 deletion bin/s2nd.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include "api/s2n.h"
#include "api/unstable/npn.h"
#include "common.h"
#include "crypto/s2n_openssl.h"
#include "utils/s2n_safety.h"

#define MAX_CERTIFICATES 50
Expand Down Expand Up @@ -563,7 +562,9 @@ int main(int argc, char *const *argv)
}

GUARD_EXIT(s2n_init(), "Error running s2n_init()");
#ifdef SSLEAY_VERSION
printf("libcrypto: %s\n", SSLeay_version(SSLEAY_VERSION));
#endif

printf("Listening on %s:%s\n", host, port);

Expand Down

0 comments on commit 5adf16f

Please sign in to comment.