diff options
Diffstat (limited to 'src/pubkey/pk_codecs')
-rw-r--r-- | src/pubkey/pk_codecs/pkcs8.cpp | 4 | ||||
-rw-r--r-- | src/pubkey/pk_codecs/x509_key.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pubkey/pk_codecs/pkcs8.cpp b/src/pubkey/pk_codecs/pkcs8.cpp index 8a464ecfe..3d73b7ab1 100644 --- a/src/pubkey/pk_codecs/pkcs8.cpp +++ b/src/pubkey/pk_codecs/pkcs8.cpp @@ -66,7 +66,7 @@ SecureVector<byte> PKCS8_decode(DataSource& source, const User_Interface& ui, throw PKCS8_Exception("Unknown PEM label " + label); } - if(key_data.is_empty()) + if(key_data.empty()) throw PKCS8_Exception("No key data found"); } catch(Decoding_Error) @@ -126,7 +126,7 @@ SecureVector<byte> PKCS8_decode(DataSource& source, const User_Interface& ui, } } - if(key.is_empty()) + if(key.empty()) throw Decoding_Error("PKCS #8 private key decoding failed"); return key; } diff --git a/src/pubkey/pk_codecs/x509_key.cpp b/src/pubkey/pk_codecs/x509_key.cpp index 455e627f3..3fec15f7f 100644 --- a/src/pubkey/pk_codecs/x509_key.cpp +++ b/src/pubkey/pk_codecs/x509_key.cpp @@ -86,7 +86,7 @@ Public_Key* load_key(DataSource& source) .end_cons(); } - if(key_bits.is_empty()) + if(key_bits.empty()) throw Decoding_Error("X.509 public key decoding failed"); const std::string alg_name = OIDS::lookup(alg_id.oid); |