Rename a couple of Certificate methods and add accessors for organization and organiz...
[libdcp.git] / src / decrypted_kdm.cc
index 9a9a16947103c7cc0c0b968c4a7ad3b12a96247b..62058fee564dd0494bd64c326997d1621501cd95 100644 (file)
@@ -260,7 +260,7 @@ DecryptedKDM::encrypt (shared_ptr<const Signer> signer, Certificate recipient, F
                keys.push_back (lines.str ());
        }
 
-       string device_list_description = recipient.common_name ();
+       string device_list_description = recipient.subject_common_name ();
        if (device_list_description.find (".") != string::npos) {
                device_list_description = device_list_description.substr (device_list_description.find (".") + 1);
        }