~ubuntu-branches/ubuntu/lucid/gnutls26/lucid-proposed

« back to all changes in this revision

Viewing changes to lib/x509/dn.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2008-06-24 19:13:25 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080624191325-33rewwn0p11jzdvq
Tags: 2.4.0-2
* Standards version 3.8.0. Rename README.source_and_patches to README.source.
* Upload to unstable.
* Point watchfile to stable releases again.
* Merge experimental and unstable changelog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2003, 2004, 2005 Free Software Foundation
3
 
 *
4
 
 * Author: Nikos Mavrogiannopoulos
5
 
 *
6
 
 * This file is part of GNUTLS.
7
 
 *
8
 
 * The GNUTLS library is free software; you can redistribute it and/or
9
 
 * modify it under the terms of the GNU Lesser General Public License
10
 
 * as published by the Free Software Foundation; either version 2.1 of
11
 
 * the License, or (at your option) any later version.
12
 
 *
13
 
 * This library is distributed in the hope that it will be useful, but
14
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 
 * Lesser General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU Lesser General Public
19
 
 * License along with this library; if not, write to the Free Software
20
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21
 
 * USA
22
 
 *
23
 
 */
24
 
 
25
 
#ifndef DN_H
26
 
# define DN_H
27
 
 
28
 
/* Some OIDs usually found in Distinguished names
29
 
 */
30
 
#define OID_X520_COUNTRY_NAME           "2.5.4.6"
31
 
#define OID_X520_ORGANIZATION_NAME      "2.5.4.10"
32
 
#define OID_X520_ORGANIZATIONAL_UNIT_NAME "2.5.4.11"
33
 
#define OID_X520_COMMON_NAME            "2.5.4.3"
34
 
#define OID_X520_LOCALITY_NAME          "2.5.4.7"
35
 
#define OID_X520_STATE_OR_PROVINCE_NAME         "2.5.4.8"
36
 
#define OID_LDAP_DC                     "0.9.2342.19200300.100.1.25"
37
 
#define OID_LDAP_UID                    "0.9.2342.19200300.100.1.1"
38
 
#define OID_PKCS9_EMAIL                         "1.2.840.113549.1.9.1"
39
 
 
40
 
int _gnutls_x509_parse_dn (ASN1_TYPE asn1_struct,
41
 
                           const char *asn1_rdn_name, char *buf,
42
 
                           size_t * sizeof_buf);
43
 
 
44
 
int _gnutls_x509_parse_dn_oid (ASN1_TYPE asn1_struct,
45
 
                               const char *asn1_rdn_name, const char *oid,
46
 
                               int indx, unsigned int raw_flag, void *buf,
47
 
                               size_t * sizeof_buf);
48
 
 
49
 
int _gnutls_x509_set_dn_oid (ASN1_TYPE asn1_struct,
50
 
                             const char *asn1_rdn_name, const char *oid,
51
 
                             int raw_flag, const char *name, int sizeof_name);
52
 
 
53
 
int _gnutls_x509_get_dn_oid (ASN1_TYPE asn1_struct,
54
 
                             const char *asn1_rdn_name,
55
 
                             int indx, void *_oid, size_t * sizeof_oid);
56
 
 
57
 
 
58
 
#endif