diff --git a/libretroshare/src/pqi/authssl.cc b/libretroshare/src/pqi/authssl.cc index b74de49af..4191e0b4f 100644 --- a/libretroshare/src/pqi/authssl.cc +++ b/libretroshare/src/pqi/authssl.cc @@ -795,8 +795,8 @@ X509 *AuthSSLimpl::SignX509ReqWithGPG(X509_REQ *req, long /*days*/) // The code has been copied in order to use the PGP signing instead of supplying the // private EVP_KEY to ASN1_sign(), which would be another alternative. - int (*i2d)(X509_CINF*, unsigned char**) = i2d_X509_CINF; #if OPENSSL_VERSION_NUMBER < 0x10100000L + int (*i2d)(X509_CINF*, unsigned char**) = i2d_X509_CINF; X509_ALGOR *algor1 = x509->cert_info->signature; X509_ALGOR *algor2 = x509->sig_alg; ASN1_BIT_STRING *signature = x509->signature; diff --git a/libretroshare/src/tcponudp/bss_tou.c b/libretroshare/src/tcponudp/bss_tou.c index dda929716..72969562f 100644 --- a/libretroshare/src/tcponudp/bss_tou.c +++ b/libretroshare/src/tcponudp/bss_tou.c @@ -234,7 +234,6 @@ static int tou_socket_write(BIO *b, const char *in, int inl) static long tou_socket_ctrl(BIO *b, int cmd, long num, void *ptr) { long ret=1; - int *ip; #ifdef DEBUG_TOU_BIO fprintf(stderr, "tou_socket_ctrl(%p,%d,%ld)\n", b, cmd, num); #endif diff --git a/openpgpsdk/src/openpgpsdk/signature.c b/openpgpsdk/src/openpgpsdk/signature.c index 7195d8007..e6820e325 100644 --- a/openpgpsdk/src/openpgpsdk/signature.c +++ b/openpgpsdk/src/openpgpsdk/signature.c @@ -302,7 +302,7 @@ static ops_boolean_t dsa_sign(ops_hash_t *hash, const ops_dsa_public_key_t *dsa, ops_write_mpi(dsasig->r, cinfo); ops_write_mpi(dsasig->s, cinfo); #else - BIGNUM *rr=NULL,*ss=NULL ; + const BIGNUM *rr=NULL,*ss=NULL ; DSA_SIG_get0(dsasig,&rr,&ss) ;