From 7c16cc908503c1135dfde60355d4b25b506641fd Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 11 Dec 2015 08:36:21 -0600 Subject: [PATCH] libratbox: implement nossl variants of rb_get_ssl_certfp() and rb_get_ssl_cipher() --- libratbox/src/nossl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libratbox/src/nossl.c b/libratbox/src/nossl.c index 2133800f6..91bdf8b08 100644 --- a/libratbox/src/nossl.c +++ b/libratbox/src/nossl.c @@ -168,4 +168,18 @@ rb_get_ssl_info(char *buf, size_t len) rb_snprintf(buf, len, "Not compiled with SSL support"); } +int +rb_ssl_get_certfp(rb_fde_t *F, uint8_t certfp[RB_SSL_CERTFP_LEN]) +{ + errno = ENOSYS; + return -1; +} + +const char * +rb_ssl_get_cipher(rb_fde_t *F) +{ + errno = ENOSYS; + return NULL; +} + #endif /* !HAVE_OPENSSL */