diff options
author | Marek Kasik <mkasik@redhat.com> | 2023-07-27 17:03:41 +0200 |
---|---|---|
committer | Marek Kasik <mkasik@redhat.com> | 2023-07-27 17:03:41 +0200 |
commit | 9c98812e8c68401c201719ce0c7a5ea67cd00f5d (patch) | |
tree | b6aedc066ca70e585ca850b9f7b20eddfb21c2e1 /glib/poppler-form-field.h | |
parent | eb3adcd80ec3ac2d7e2c5e56aec49f9e8aab0ba2 (diff) |
glib: Add new members to PopplerCertificateInfo
These new members of the structure can be used to show more detailed info about
who signed the document and more info about issuer of the certificate.
Add PopplerCertificateInfo to PopplerSignatureInfo to be able
to get certificate info of the signature.
Diffstat (limited to 'glib/poppler-form-field.h')
-rw-r--r-- | glib/poppler-form-field.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/glib/poppler-form-field.h b/glib/poppler-form-field.h index d6218ab0..6cdf2240 100644 --- a/glib/poppler-form-field.h +++ b/glib/poppler-form-field.h @@ -2,7 +2,7 @@ * * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> * Copyright (C) 2021 André Guerreiro <aguerreiro1985@gmail.com> - * Copyright (C) 2021 Marek Kasik <mkasik@redhat.com> + * Copyright (C) 2021, 2023 Marek Kasik <mkasik@redhat.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -245,6 +245,8 @@ PopplerSignatureStatus poppler_signature_info_get_signature_status(const Poppler POPPLER_PUBLIC PopplerCertificateStatus poppler_signature_info_get_certificate_status(const PopplerSignatureInfo *siginfo); POPPLER_PUBLIC +PopplerCertificateInfo *poppler_signature_info_get_certificate_info(const PopplerSignatureInfo *siginfo); +POPPLER_PUBLIC const gchar *poppler_signature_info_get_signer_name(const PopplerSignatureInfo *siginfo); POPPLER_PUBLIC GDateTime *poppler_signature_info_get_local_signing_time(const PopplerSignatureInfo *siginfo); @@ -350,6 +352,20 @@ const char *poppler_certificate_info_get_id(const PopplerCertificateInfo *certif POPPLER_PUBLIC const char *poppler_certificate_info_get_subject_common_name(const PopplerCertificateInfo *certificate_info); POPPLER_PUBLIC +const char *poppler_certificate_info_get_subject_organization(const PopplerCertificateInfo *certificate_info); +POPPLER_PUBLIC +const char *poppler_certificate_info_get_subject_email(const PopplerCertificateInfo *certificate_info); +POPPLER_PUBLIC +const char *poppler_certificate_info_get_issuer_common_name(const PopplerCertificateInfo *certificate_info); +POPPLER_PUBLIC +const char *poppler_certificate_info_get_issuer_organization(const PopplerCertificateInfo *certificate_info); +POPPLER_PUBLIC +const char *poppler_certificate_info_get_issuer_email(const PopplerCertificateInfo *certificate_info); +POPPLER_PUBLIC +GDateTime *poppler_certificate_info_get_issuance_time(const PopplerCertificateInfo *certificate_info); +POPPLER_PUBLIC +GDateTime *poppler_certificate_info_get_expiration_time(const PopplerCertificateInfo *certificate_info); +POPPLER_PUBLIC PopplerCertificateInfo *poppler_get_certificate_info_by_id(const char *id); POPPLER_PUBLIC GList *poppler_get_available_signing_certificates(void); |