- Cleanup, typo fix

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2123 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aet 2005-02-02 10:21:10 +00:00
parent bd356f61ba
commit c1b0626cdd
14 changed files with 28 additions and 28 deletions

View File

@ -21,7 +21,7 @@
#ifndef _OPENSC_ASN1_H
#define _OPENSC_ASN1_H
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -192,7 +192,7 @@ void sc_asn1_clear_algorithm_id(struct sc_algorithm_id *);
#define ASN1_UNIVERSALSTRING 28
#define ASN1_BMPSTRING 30
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -17,7 +17,7 @@
#include <opensc/types.h>
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -280,7 +280,7 @@ struct sc_cardctl_oberthur_createpin_info {
unsigned int puk_tries;
};
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -23,7 +23,7 @@
#include <opensc/opensc.h>
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -34,7 +34,7 @@ struct sc_emv_card {
int sc_emv_bind(struct sc_card *card, struct sc_emv_card **emv_card);
int sc_emv_unbind(struct sc_emv_card *emv_card);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -21,7 +21,7 @@
#ifndef _OPENSC_ERRORS_H
#define _OPENSC_ERRORS_H
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -109,7 +109,7 @@ extern "C" {
const char *sc_strerror(int sc_errno);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -25,7 +25,7 @@
#include <config.h>
#endif
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -68,7 +68,7 @@ struct sc_algorithm_info * _sc_card_find_rsa_alg(struct sc_card *card,
int sc_asn1_read_tag(const u8 ** buf, size_t buflen, unsigned int *cla_out,
unsigned int *tag_out, size_t *taglen);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -28,7 +28,7 @@
#include <stdio.h>
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -117,7 +117,7 @@ extern "C" {
#define SC_MAX_PIN_SIZE 256 /* OpenPGP card has 254 max */
#define SC_MAX_ATR_SIZE 33
#define SC_MAX_AID_SIZE 16
/* Beware: the following needs to be a mutiple of 4
/* Beware: the following needs to be a multiple of 4
* or else sc_update_binary will not work on GPK */
#define SC_APDU_CHOP_SIZE 248
@ -895,7 +895,7 @@ extern struct sc_card_driver *sc_get_jcop_driver(void);
extern struct sc_card_driver *sc_get_oberthur_driver(void);
extern struct sc_card_driver *sc_get_belpic_driver(void);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -21,7 +21,7 @@
#ifndef _OPENSC_PKCS15_H
#define _OPENSC_PKCS15_H
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -649,7 +649,7 @@ int sc_pkcs15emu_add_pubkey(sc_pkcs15_card_t *p15card,
int type, unsigned int modulus_length, int usage,
const sc_path_t *path, int ref,
const sc_pkcs15_id_t *auth_id, int obj_flags);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -21,7 +21,7 @@
#ifndef _OPENSC_TYPES_H
#define _OPENSC_TYPES_H
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -105,7 +105,7 @@ typedef struct sc_apdu {
unsigned int sw1, sw2; /* Status words returned in R-APDU */
} sc_apdu_t;
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -21,7 +21,7 @@
#ifndef _PKCS15INIT_KEYCACHE_H
#define _PKCS15INIT_KEYCACHE_H
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -37,7 +37,7 @@ extern int sc_keycache_get_key(const sc_path_t *, int, int, unsigned char *, siz
extern const u8 *sc_keycache_get_pin(const sc_path_t *, int);
extern void sc_keycache_forget_key(const sc_path_t *, int, int);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -7,7 +7,7 @@
#ifndef PKCS15_INIT_H
#define PKCS15_INIT_H
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -369,7 +369,7 @@ extern struct sc_pkcs15init_operations *sc_pkcs15init_get_jcop_ops(void);
extern struct sc_pkcs15init_operations *sc_pkcs15init_get_starcos_ops(void);
extern struct sc_pkcs15init_operations *sc_pkcs15init_get_oberthur_ops(void);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -7,7 +7,7 @@
#ifndef _OPENSC_PROFILE_H
#define _OPENSC_PROFILE_H
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -144,7 +144,7 @@ int sc_profile_instantiate_template(struct sc_profile *,
int sc_profile_add_file(struct sc_profile *,
const char *, sc_file_t *);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -328,7 +328,7 @@ extern void *memdup(const void *, size_t);
extern PKCS11_KEY_ops pkcs11_rsa_ops;
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,7 +1,7 @@
#ifndef _SC_TEST_H
#define _SC_TEST_H
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -15,7 +15,7 @@ void sc_test_cleanup();
void sc_test_print_card(const struct sc_pkcs15_card *);
void sc_test_print_object(const struct sc_pkcs15_object *);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif

View File

@ -21,7 +21,7 @@
#include <sys/stat.h>
#include <opensc/opensc.h>
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
#endif
@ -42,7 +42,7 @@ int connect_card(struct sc_context *, struct sc_card **,
int reader_id, int slot_id, int wait, int verbose);
int parse_application_id(struct sc_object_id *oid, char *oid_str);
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif