X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/94b4fbf93a7653bd9acb52649d6a4a8d5f994d0a..a099270d452af92c5640d5d6712aa0987adb7c44:/libratbox/include/rb_commio.h diff --git a/libratbox/include/rb_commio.h b/libratbox/include/rb_commio.h index 64aa889..1eef573 100644 --- a/libratbox/include/rb_commio.h +++ b/libratbox/include/rb_commio.h @@ -100,6 +100,8 @@ void rb_note(rb_fde_t *, const char *); #define RB_SELECT_ACCEPT RB_SELECT_READ #define RB_SELECT_CONNECT RB_SELECT_WRITE +#define RB_SSL_CERTFP_LEN 20 + int rb_set_nb(rb_fde_t *); int rb_set_buffers(rb_fde_t *, int); @@ -141,6 +143,7 @@ int rb_select(unsigned long); int rb_fd_ssl(rb_fde_t *F); int rb_get_fd(rb_fde_t *F); const char *rb_get_ssl_strerror(rb_fde_t *F); +int rb_get_ssl_certfp(rb_fde_t *F, uint8_t certfp[RB_SSL_CERTFP_LEN]); rb_fde_t *rb_get_fde(int fd);