~ubuntu-branches/ubuntu/hardy/gnutls13/hardy-updates

« back to all changes in this revision

Viewing changes to lib/x509/extensions.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2007-09-29 11:29:22 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070929112922-abqj0gl08kstu27v
Tags: 2.0.1-1
* New upstream version.
* Remove doc/*.info* on clean to allow building thrice in a row.
  (Closes: #441740)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2003, 2004, 2005 Free Software Foundation
 
2
 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation
3
3
 *
4
4
 * Author: Nikos Mavroyanopoulos
5
5
 *
32
32
                                        size_t * ret_size);
33
33
int _gnutls_x509_ext_extract_keyUsage (uint16_t * keyUsage,
34
34
                                       opaque * extnValue, int extnValueLen);
35
 
int _gnutls_x509_ext_extract_basicConstraints (int *CA, opaque * extnValue,
 
35
int _gnutls_x509_ext_extract_basicConstraints (int *CA,
 
36
                                               int *pathLenConstraint,
 
37
                                               opaque * extnValue,
36
38
                                               int extnValueLen);
37
 
 
38
39
int _gnutls_x509_crt_set_extension (gnutls_x509_crt_t cert,
39
40
                                    const char *extension_id,
40
41
                                    const gnutls_datum_t * ext_data,
41
42
                                    unsigned int critical);
42
 
int _gnutls_x509_ext_gen_basicConstraints (int CA, gnutls_datum_t * der_ext);
 
43
int _gnutls_x509_ext_gen_basicConstraints (int CA, int pathLenConstraint,
 
44
                                           gnutls_datum_t * der_ext);
43
45
int _gnutls_x509_ext_gen_keyUsage (uint16_t usage, gnutls_datum_t * der_ext);
44
46
int _gnutls_x509_ext_gen_subject_alt_name (gnutls_x509_subject_alt_name_t
45
47
                                           type, const char *data_string,
52
54
                                 gnutls_datum_t * der_data);
53
55
int _gnutls_x509_ext_gen_auth_key_id (const void *id, size_t id_size,
54
56
                                      gnutls_datum_t * der_data);
 
57
 
 
58
int _gnutls_x509_ext_extract_proxyCertInfo (int *pathLenConstraint,
 
59
                                            char **policyLanguage,
 
60
                                            char **policy,
 
61
                                            size_t *sizeof_policy,
 
62
                                            opaque * extnValue,
 
63
                                            int extnValueLen);
 
64
int _gnutls_x509_ext_gen_proxyCertInfo (int pathLenConstraint,
 
65
                                        const char *policyLanguage,
 
66
                                        const char *policy,
 
67
                                        size_t sizeof_policy,
 
68
                                        gnutls_datum_t * der_ext);