Skip to content

Commit

Permalink
Don't define ssl_verify_callback_common when using --disable-ssl.
Browse files Browse the repository at this point in the history
Fixes build failure:
```
In file included from ./nrpe.c:44:
../include/nrpe-ssl.h:47:50: error: unknown type name 'X509_STORE_CTX'
int ssl_verify_callback_common(int preverify_ok, X509_STORE_CTX * ctx, int is_invalid);
                                                 ^
```
  • Loading branch information
sebastic committed Dec 11, 2024
1 parent 563594c commit 6ba78ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/nrpe-ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ void ssl_set_protocol_version(SslVer ssl_proto_ver, unsigned long *ssl_opts);
void ssl_log_startup(int server);
int ssl_load_certificates(void);
int ssl_set_ciphers(void);
#ifdef HAVE_SSL
int ssl_verify_callback_common(int preverify_ok, X509_STORE_CTX * ctx, int is_invalid);
#endif

0 comments on commit 6ba78ac

Please sign in to comment.