diff --git a/src/electronic-ids/pcsc/pcsc-common.hpp b/src/electronic-ids/pcsc/pcsc-common.hpp index f5af624..3d19cdb 100644 --- a/src/electronic-ids/pcsc/pcsc-common.hpp +++ b/src/electronic-ids/pcsc/pcsc-common.hpp @@ -43,7 +43,7 @@ inline pcsc_cpp::byte_vector getCertificate(pcsc_cpp::SmartCard& card, return readBinary(card, length, MAX_LE_VALUE); } -inline pcsc_cpp::byte_vector addPaddingToPin(pcsc_cpp::byte_vector&& pin, size_t paddingLength, +constexpr pcsc_cpp::byte_vector addPaddingToPin(pcsc_cpp::byte_vector&& pin, size_t paddingLength, pcsc_cpp::byte_type paddingChar) { pin.resize(std::max(pin.size(), paddingLength), paddingChar);