]> jfr.im git - solanum.git/blobdiff - librb/src/gnutls.c
[TLS backends] Miscellaneous fixes
[solanum.git] / librb / src / gnutls.c
index cea17d8053109dafacc70cc75da6db94a34e7bfb..9216b08e4154a524744427ecbf28383f5dc5a9a6 100644 (file)
@@ -602,14 +602,14 @@ rb_get_ssl_strerror(rb_fde_t *F)
        return gnutls_strerror(F->ssl_errno);
 }
 
-static unsigned int
+static int
 make_certfp(gnutls_x509_crt_t cert, uint8_t certfp[RB_SSL_CERTFP_LEN], int method)
 {
        gnutls_digest_algorithm_t algo;
        uint8_t digest[RB_SSL_CERTFP_LEN * 2];
        size_t digest_size;
        bool spki = false;
-       unsigned int len;
+       int len;
 
        switch(method)
        {