mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-04 02:56:52 -04:00
suppressed a few warnings (suggested by Phenom)
This commit is contained in:
parent
a531a41c4a
commit
e75487e48a
3 changed files with 2 additions and 3 deletions
|
@ -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
|
// 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.
|
// 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
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
|
int (*i2d)(X509_CINF*, unsigned char**) = i2d_X509_CINF;
|
||||||
X509_ALGOR *algor1 = x509->cert_info->signature;
|
X509_ALGOR *algor1 = x509->cert_info->signature;
|
||||||
X509_ALGOR *algor2 = x509->sig_alg;
|
X509_ALGOR *algor2 = x509->sig_alg;
|
||||||
ASN1_BIT_STRING *signature = x509->signature;
|
ASN1_BIT_STRING *signature = x509->signature;
|
||||||
|
|
|
@ -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)
|
static long tou_socket_ctrl(BIO *b, int cmd, long num, void *ptr)
|
||||||
{
|
{
|
||||||
long ret=1;
|
long ret=1;
|
||||||
int *ip;
|
|
||||||
#ifdef DEBUG_TOU_BIO
|
#ifdef DEBUG_TOU_BIO
|
||||||
fprintf(stderr, "tou_socket_ctrl(%p,%d,%ld)\n", b, cmd, num);
|
fprintf(stderr, "tou_socket_ctrl(%p,%d,%ld)\n", b, cmd, num);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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->r, cinfo);
|
||||||
ops_write_mpi(dsasig->s, cinfo);
|
ops_write_mpi(dsasig->s, cinfo);
|
||||||
#else
|
#else
|
||||||
BIGNUM *rr=NULL,*ss=NULL ;
|
const BIGNUM *rr=NULL,*ss=NULL ;
|
||||||
|
|
||||||
DSA_SIG_get0(dsasig,&rr,&ss) ;
|
DSA_SIG_get0(dsasig,&rr,&ss) ;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue