summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-01-18 14:41:29 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-01-18 14:41:29 +0000
commitb9059712e3a8954643d916895e794512546e2742 (patch)
tree6a2bc8d687ad7b2f1390cc93416467f640e8d3cf
parent4d7a5a6520f7cdd2d903e13e9a4aade28009a269 (diff)
downloadgnutls-b9059712e3a8954643d916895e794512546e2742.tar.gz
cleanups
-rw-r--r--NEWS11
-rw-r--r--lib/gnutls_ui.h2
-rw-r--r--lib/x509_b64.c6
3 files changed, 12 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index 53ebca1368..884ad0857e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,14 +1,17 @@
Version ?.?.?
-- Added gnutls_x509pki_verify_certificate()
-- Added gnutls_x509pki_set_trust_mem() and gnutls_x509pki_set_key_mem()
-- Bug fixes in srpcrypt (based on patch by Marc Huber)
-- Bug fixes in the Handshake protocol (based on patch by Guillaume Morin)
- gnutls_check_pending() was renamed to gnutls_record_check_pending()
- Key exchange methods changed so they do not depend on the Certificate
type (GNUTLS_KX_X509PKI_* renamed to GNUTLS_KX_*)
- Renamed gnutls_x509pki_s/get_dh_bits() to gnutls_dh_s/get_dhe_bits()
- Renamed gnutls_anon_server/client_get_dh_bits() to gnutls_dh_get_dha_bits()
+Version 0.3.3
+- Added gnutls_x509pki_verify_certificate()
+- Added gnutls_x509pki_set_trust_mem() and gnutls_x509pki_set_key_mem()
+- Bug fixes in srpcrypt (based on patch by Marc Huber)
+- Bug fixes in the Handshake protocol (based on patch by Guillaume Morin)
+- Corrected library versioning
+
Version 0.3.2 (5/01/2002)
- Corrected bug which did not allow a client to accept multiple CA names
- Added gnutls_fingerprint()
diff --git a/lib/gnutls_ui.h b/lib/gnutls_ui.h
index 0efa9d1484..31b246f553 100644
--- a/lib/gnutls_ui.h
+++ b/lib/gnutls_ui.h
@@ -80,6 +80,8 @@ time_t gnutls_x509pki_extract_certificate_activation_time( const gnutls_datum*);
time_t gnutls_x509pki_extract_certificate_expiration_time( const gnutls_datum*);
int gnutls_x509pki_extract_subject_dns_name( const gnutls_datum*, char*, int*);
+int gnutls_x509pki_verify_certificate( const gnutls_datum* cert_list, int cert_list_length, const gnutls_datum * CA_list, int CA_list_length, const gnutls_datum* CRL_list, int CRL_list_length);
+
/* get data from the state */
const gnutls_datum* gnutls_x509pki_get_peer_certificate_list( GNUTLS_STATE, int* list_size);
int gnutls_x509pki_get_certificate_request_status( GNUTLS_STATE);
diff --git a/lib/x509_b64.c b/lib/x509_b64.c
index 413da8f8d1..8023455a96 100644
--- a/lib/x509_b64.c
+++ b/lib/x509_b64.c
@@ -130,7 +130,7 @@ inline static int decode(uint8 * result, const uint8 * data)
/* encodes data and puts the result into result (localy alocated)
* The result_size is the return value
*/
-int _gnutls_base64_encode(uint8 * data, int data_size, uint8 ** result)
+int _gnutls_base64_encode(const uint8 * data, int data_size, uint8 ** result)
{
int i, ret, tmp, j;
char tmpres[4];
@@ -279,7 +279,7 @@ int size;
/* decodes data and puts the result into result (localy alocated)
* The result_size is the return value
*/
-int _gnutls_base64_decode(uint8 * data, int data_size, uint8 ** result)
+int _gnutls_base64_decode(const uint8 * data, int data_size, uint8 ** result)
{
int i, ret, tmp, j;
uint8 tmpres[3];
@@ -309,7 +309,7 @@ int _gnutls_base64_decode(uint8 * data, int data_size, uint8 ** result)
/* copies data to result but removes newlines and <CR>
* returns the size of the data copied.
*/
-inline static int cpydata(uint8 * data, int data_size, uint8 ** result)
+inline static int cpydata(const uint8 * data, int data_size, uint8 ** result)
{
int i, j;