summaryrefslogtreecommitdiff
path: root/client/bankid.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2011-04-20 19:48:32 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2011-04-20 19:48:32 +0200
commit1611cd7cf699965bcc9e4e64a6ad9a6576b946d3 (patch)
tree6a10df4752f18552f685f40b0c47460df9983116 /client/bankid.c
parenta99cfbde1d26bf57bbfb13e5e6f46e12e3b6f905 (diff)
downloadfribid-1611cd7cf699965bcc9e4e64a6ad9a6576b946d3.tar.gz
fribid-1611cd7cf699965bcc9e4e64a6ad9a6576b946d3.tar.bz2
fribid-1611cd7cf699965bcc9e4e64a6ad9a6576b946d3.zip
Show the name attribute in the "choose password" dialog
Diffstat (limited to 'client/bankid.c')
-rw-r--r--client/bankid.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/bankid.c b/client/bankid.c
index 19d7caf..b525abd 100644
--- a/client/bankid.c
+++ b/client/bankid.c
@@ -371,6 +371,16 @@ BankIDError bankid_createRequest(const RegutilInfo *params,
}
/**
+ * Gets the first subject display name in a request.
+ */
+char *bankid_getRequestDisplayName(const RegutilInfo *params) {
+ // params->pkcs10 is the first request
+ if (!params->pkcs10 || !params->pkcs10->subjectDN) return NULL;
+
+ return backend_getSubjectDisplayName(params->pkcs10->subjectDN);
+}
+
+/**
* Stores a certificate chain for a newly created key.
*/
BankIDError bankid_storeCertificates(const char *certs) {