Skip to content

Commit

Permalink
Fix tabs on openssl compat functions
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Collins <ben@cyphre.com>
  • Loading branch information
benmcollins committed Apr 9, 2017
1 parent fea162d commit 9b608c4
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions libjwt/jwt.c
Expand Up @@ -40,21 +40,23 @@

static void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
{
if (pr != NULL)
*pr = sig->r;
if (ps != NULL)
*ps = sig->s;
if (pr != NULL)
*pr = sig->r;
if (ps != NULL)
*ps = sig->s;
}

static int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s)
{
if (r == NULL || s == NULL)
return 0;
BN_clear_free(sig->r);
BN_clear_free(sig->s);
sig->r = r;
sig->s = s;
return 1;
if (r == NULL || s == NULL)
return 0;

BN_clear_free(sig->r);
BN_clear_free(sig->s);
sig->r = r;
sig->s = s;

return 1;
}

#endif
Expand Down

0 comments on commit 9b608c4

Please sign in to comment.