From a64bbc55aa88211ce391e32bf1c2fa06c62cc6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?= Date: Mon, 31 Aug 2015 22:23:59 +0800 Subject: [PATCH] [OpenPGP] Fix building without OpenSSL. --- src/libopensc/card-openpgp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libopensc/card-openpgp.c b/src/libopensc/card-openpgp.c index 610bd087..68367232 100644 --- a/src/libopensc/card-openpgp.c +++ b/src/libopensc/card-openpgp.c @@ -2084,7 +2084,7 @@ pgp_build_tlv(sc_context_t *ctx, unsigned int tag, u8 *data, size_t len, u8 **ou highest_order--; if (highest_order >= 4) cla = 0x00; - else + else cla = tag >> 8*highest_order; /* Restore class bits */ *out[0] |= cla; @@ -2437,9 +2437,7 @@ static int pgp_erase_card(sc_card_t *card) /* ABI: card ctl: perform special card-specific operations */ static int pgp_card_ctl(sc_card_t *card, unsigned long cmd, void *ptr) { -#ifdef ENABLE_OPENSSL int r; -#endif /* ENABLE_OPENSSL */ LOG_FUNC_CALLED(card->ctx);