fix indent, patch supplied by Martin Paljak
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2082 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
7ed9a18d51
commit
8a0fc5bdcf
|
@ -121,8 +121,7 @@ int sc_pkcs15_encode_aodf_entry(struct sc_context *ctx,
|
||||||
struct sc_pkcs15_pin_info *pin =
|
struct sc_pkcs15_pin_info *pin =
|
||||||
(struct sc_pkcs15_pin_info *) obj->data;
|
(struct sc_pkcs15_pin_info *) obj->data;
|
||||||
struct sc_asn1_pkcs15_object pin_obj = { (struct sc_pkcs15_object *) obj,
|
struct sc_asn1_pkcs15_object pin_obj = { (struct sc_pkcs15_object *) obj,
|
||||||
asn1_com_ao_attr, NULL,
|
asn1_com_ao_attr, NULL, asn1_type_pin_attr };
|
||||||
asn1_type_pin_attr };
|
|
||||||
int r;
|
int r;
|
||||||
size_t flags_len;
|
size_t flags_len;
|
||||||
size_t padchar_len = 1;
|
size_t padchar_len = 1;
|
||||||
|
|
|
@ -319,7 +319,8 @@ int sc_pkcs15_compute_signature(struct sc_pkcs15_card *p15card,
|
||||||
*
|
*
|
||||||
* Right now we work around this by assuming that eToken keys
|
* Right now we work around this by assuming that eToken keys
|
||||||
* always have algorithm RSA_PURE_SIG so the input buffer
|
* always have algorithm RSA_PURE_SIG so the input buffer
|
||||||
* is padded and has the same length as the signature. --okir */
|
* is padded and has the same length as the signature. --okir
|
||||||
|
*/
|
||||||
if (tmpin == out) {
|
if (tmpin == out) {
|
||||||
memcpy(tmpout, tmpin, inlen);
|
memcpy(tmpout, tmpin, inlen);
|
||||||
tmpin = tmpout;
|
tmpin = tmpout;
|
||||||
|
|
|
@ -514,9 +514,7 @@ static int pcsc_init(struct sc_context *ctx, void **reader_data)
|
||||||
struct pcsc_global_private_data *gpriv;
|
struct pcsc_global_private_data *gpriv;
|
||||||
|
|
||||||
rv = SCardEstablishContext(SCARD_SCOPE_GLOBAL,
|
rv = SCardEstablishContext(SCARD_SCOPE_GLOBAL,
|
||||||
NULL,
|
NULL, NULL, &pcsc_ctx);
|
||||||
NULL,
|
|
||||||
&pcsc_ctx);
|
|
||||||
if (rv != SCARD_S_SUCCESS)
|
if (rv != SCARD_S_SUCCESS)
|
||||||
return pcsc_ret_to_error(rv);
|
return pcsc_ret_to_error(rv);
|
||||||
rv = SCardListReaders(pcsc_ctx, NULL, NULL,
|
rv = SCardListReaders(pcsc_ctx, NULL, NULL,
|
||||||
|
|
Loading…
Reference in New Issue