From 0aab9bb18483f4e0ee4409613b02a99d73669d56 Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Fri, 5 Mar 2010 22:35:40 +0000 Subject: [PATCH] - fixed includes - fixed return value from pace_test if NO_PACE is defined git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@43 96b47cad-a561-4643-ad3b-153ac7d7599c --- ccid/pace.c | 14 +++++++++----- ccid/pace.h | 3 +-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ccid/pace.c b/ccid/pace.c index c250711..64ad93f 100644 --- a/ccid/pace.c +++ b/ccid/pace.c @@ -16,8 +16,10 @@ * You should have received a copy of the GNU General Public License along with * ccid. If not, see . */ -#include #include "pace.h" +#include +#include +#include #define ASN1_APP_EXP_OPT(stname, field, type, tag) ASN1_EX_TYPE(ASN1_TFLG_EXPTAG|ASN1_TFLG_APPLICATION|ASN1_TFLG_OPTIONAL, tag, stname, field, type) @@ -131,18 +133,20 @@ inline int EstablishPACEChannel(sc_context_t *ctx, sc_card_t *card, const __u8 *in, __u8 **out, size_t *outlen) { SC_FUNC_RETURN(ctx, SC_LOG_TYPE_DEBUG, SC_ERROR_NOT_SUPPORTED); } -void pace_test(sc_context_t *ctx, sc_card_t *card) { +int pace_test(sc_context_t *ctx, sc_card_t *card) { SC_FUNC_RETURN(ctx, SC_LOG_TYPE_DEBUG, SC_ERROR_NOT_SUPPORTED); } #else +#include #include #include -#include #include -#include -#include +#include #include +#include +#include +#include uint16_t ssc = 0; diff --git a/ccid/pace.h b/ccid/pace.h index 4dc2b15..ba60f5e 100644 --- a/ccid/pace.h +++ b/ccid/pace.h @@ -20,8 +20,7 @@ #define _PACE_H #include -#include -#include +#include #ifdef __cplusplus extern "C" {