1
0
Fork 0
mirror of git://git.gnupg.org/libksba.git synced 2025-12-05 22:28:43 +00:00
No description
Find a file
Werner Koch 2dd35bef66
ocsp: Add a hack to allow handling SHA256 based CertIDs.
* src/ocsp.h (struct ocsp_reqitem_s): Increase size of hash items.
(struct ksba_ocsp_s): Add flag sha256_certid.
* src/ocsp.c (oidstr_sha256): New.
(ksba_ocsp_set_nonce): Add hack to set/clear this flag.
(issuer_name_hash): Add arg use_sha256 and change accordingly.
(issuer_key_hash): Ditto.
(ksba_ocsp_prepare_request): Make use of the new flag.
(parse_single_response): Allow the use of SHA256 CertID items.

* tests/sha1.c (sha256_hash_buffer): New.  Also add a bunch of othe
functions to implement SHA256.
* tests/t-ocsp.c (sha256_certid): New flag.
(one_request): Use it.
(one_response): Ditto.
(my_hash_buffer): Support SHA256.
(main): Add option --sha256.
2025-11-28 16:12:30 +01:00
build-aux build: New configure option --with-libtool-modification. 2023-08-16 14:01:38 +09:00
doc doc: Minor style fixes. 2023-10-06 09:17:51 +09:00
gl build: Update to newer autoconf constructs. 2020-11-18 12:46:06 +09:00
m4 build: Update autogen.sh and make SYSROOT available. 2024-06-21 14:05:43 +02:00
src ocsp: Add a hack to allow handling SHA256 based CertIDs. 2025-11-28 16:12:30 +01:00
tests ocsp: Add a hack to allow handling SHA256 based CertIDs. 2025-11-28 16:12:30 +01:00
.gitignore Release 1.3.2. 2014-11-25 12:33:54 +01:00
announce.txt Add more gcc warning options in maintainer mode. 2008-10-30 10:51:12 +00:00
AUTHORS Release 1.6.4 2023-06-19 11:40:47 +02:00
autogen.rc build: Update autogen.rc. 2018-11-13 10:38:36 +09:00
autogen.sh build: Update autogen.sh and make SYSROOT available. 2024-06-21 14:05:43 +02:00
ChangeLog Generate the ChangeLog from commit logs. 2011-12-01 23:30:50 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 23:30:50 +01:00
configure.ac build: Avoid using -a for test(1). 2025-09-25 11:20:42 +09:00
COPYING Change library license to LGPLv3+/GPLv2+. 2012-09-26 14:30:58 +02:00
COPYING.GPLv2 Change library license to LGPLv3+/GPLv2+. 2012-09-26 14:30:58 +02:00
COPYING.GPLv3 Change library license to LGPLv3+/GPLv2+. 2012-09-26 14:30:58 +02:00
COPYING.LGPLv3 Change library license to LGPLv3+/GPLv2+. 2012-09-26 14:30:58 +02:00
INSTALL Prepare release 2008-09-22 09:16:40 +00:00
ksba.txt Entry for the FSD 2001-12-06 20:45:43 +00:00
Makefile.am build: Update autogen.sh and make SYSROOT available. 2024-06-21 14:05:43 +02:00
mkinstalldirs Prepare release 2008-09-22 09:16:40 +00:00
NEWS Post release updates 2024-06-21 14:20:23 +02:00
README Release 1.6.4 2023-06-19 11:40:47 +02:00
README.GIT Release 1.3.0 2012-09-27 16:20:54 +02:00
THANKS Avoid dynamic relocations. 2008-02-25 10:00:09 +00:00
TODO Support DSA 2008-02-22 15:46:34 +00:00

                               LIBKSBA
                              ---------

         Copyright (C) 2001-2006, 2010-2015, 2018-2023 g10 Code GmbH

This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.

This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Libksba itself is distributed under the terms of the GNU General
Public License, see the file AUTHORS for details.


                            KSBA Overview
                            -------------

KSBA (pronounced Kasbah) is a library to make X.509 certificates as
well as the CMS easily accessible by other applications.  Both
specifications are building blocks of S/MIME and TLS.

KSBA is made available as a standard shared library and reserves
identifiers starting with "ksba" and "_ksba" (also uppercase and mixed
case).  It does not rely on another cryptographic library.


                            Documentation
                            -------------

A standard info format reference manual is included.  However the OCSP
feature has not yet been documented.  See the comments in src/ocsp.c
and the example tests/t-ocsp.c.  The GnuPG's dirmngr module makes
extensive use of the OCSP feature and may be used as another example.