summaryrefslogtreecommitdiff
path: root/src/encrypted_kdm.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-07-12 20:40:32 +0100
committerCarl Hetherington <cth@carlh.net>2015-07-12 20:40:32 +0100
commita09bbf5f06a9ed2f5011999c0a6eef78b9e1ca56 (patch)
tree9b09a156a0e07d343c3676f7c38975ebef6f01b5 /src/encrypted_kdm.cc
parent6cac3a738e897fcc326ba70564f02c8dfa2ef900 (diff)
Rename a couple of Certificate methods and add accessors for organization and organizational unit name.
Diffstat (limited to 'src/encrypted_kdm.cc')
-rw-r--r--src/encrypted_kdm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encrypted_kdm.cc b/src/encrypted_kdm.cc
index fe96250f..948e26a5 100644
--- a/src/encrypted_kdm.cc
+++ b/src/encrypted_kdm.cc
@@ -524,7 +524,7 @@ EncryptedKDM::EncryptedKDM (
kre.not_valid_before = not_valid_before;
kre.not_valid_after = not_valid_after;
kre.authorized_device_info.device_list_identifier = make_uuid ();
- string n = recipient.common_name ();
+ string n = recipient.subject_common_name ();
if (n.find (".") != string::npos) {
n = n.substr (n.find (".") + 1);
}