Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit 8c6bfdc

Browse files
metsmamrts
authored andcommitted
Update copyright year
WE2-593 Signed-off-by: Raul Metsma <[email protected]>
1 parent 0483f24 commit 8c6bfdc

File tree

14 files changed

+15
-17
lines changed

14 files changed

+15
-17
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2021 Estonian Information System Authority
3+
Copyright (c) 2020-2022 Estonian Information System Authority
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

include/pcsc-cpp/comp_winscard.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 Estonian Information System Authority
2+
* Copyright (c) 2020-2022 Estonian Information System Authority
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal

include/pcsc-cpp/pcsc-cpp-utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 Estonian Information System Authority
2+
* Copyright (c) 2020-2022 Estonian Information System Authority
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal

include/pcsc-cpp/pcsc-cpp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 Estonian Information System Authority
2+
* Copyright (c) 2020-2022 Estonian Information System Authority
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal

src/Context.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 Estonian Information System Authority
2+
* Copyright (c) 2020-2022 Estonian Information System Authority
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal

src/Reader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 Estonian Information System Authority
2+
* Copyright (c) 2020-2022 Estonian Information System Authority
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal

src/SCardCall.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 Estonian Information System Authority
2+
* Copyright (c) 2020-2022 Estonian Information System Authority
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal

src/SmartCard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 Estonian Information System Authority
2+
* Copyright (c) 2020-2022 Estonian Information System Authority
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal

src/listReaders.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 Estonian Information System Authority
2+
* Copyright (c) 2020-2022 Estonian Information System Authority
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal

src/utils.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 Estonian Information System Authority
2+
* Copyright (c) 2020-2022 Estonian Information System Authority
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy
55
* of this software and associated documentation files (the "Software"), to deal
@@ -130,9 +130,7 @@ size_t readDataLengthFromAsn1(const SmartCard& card)
130130
+ bytes2hexstr({response.data[1]}));
131131
}
132132

133-
// Read 2-byte length field at offset 2 and 3.
134-
// TODO: the +4 comes from EstEID example, won't get the full ASN data without this, dig out the
135-
// reason (probably DER footer)
133+
// Read 2-byte length field at offset 2 and 3 and add the 4 DER length bytes.
136134
const auto length = size_t((response.data[2] << 8) + response.data[3] + 4);
137135
if (length < 128 || length > 0x0f00) {
138136
// TODO: more specific exception

0 commit comments

Comments
 (0)