- 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
This commit is contained in:
frankmorgner
2010-03-05 22:35:40 +00:00
parent d91b45c47a
commit 0aab9bb184
2 changed files with 10 additions and 7 deletions

View File

@@ -16,8 +16,10 @@
* You should have received a copy of the GNU General Public License along with
* ccid. If not, see <http://www.gnu.org/licenses/>.
*/
#include <opensc/log.h>
#include "pace.h"
#include <opensc/log.h>
#include <openssl/asn1.h>
#include <openssl/asn1t.h>
#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 <asm/byteorder.h>
#include <opensc/opensc.h>
#include <opensc/ui.h>
#include <openssl/objects.h>
#include <openssl/err.h>
#include <asm/byteorder.h>
#include <string.h>
#include <openssl/objects.h>
#include <openssl/pace.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
uint16_t ssc = 0;

View File

@@ -20,8 +20,7 @@
#define _PACE_H
#include <linux/usb/ch9.h>
#include <openssl/asn1.h>
#include <openssl/asn1t.h>
#include <opensc/opensc.h>
#ifdef __cplusplus
extern "C" {