~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to doc/crypto/d2i_X509.pod

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2005-12-13 21:37:42 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051213213742-d0ydaylf80l16bj1
Tags: upstream-0.9.8a
ImportĀ upstreamĀ versionĀ 0.9.8a

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
 #include <openssl/x509.h>
11
11
 
12
 
 X509 *d2i_X509(X509 **px, unsigned char **in, int len);
 
12
 X509 *d2i_X509(X509 **px, const unsigned char **in, int len);
13
13
 int i2d_X509(X509 *x, unsigned char **out);
14
14
 
15
15
 X509 *d2i_X509_bio(BIO *bp, X509 **x);
23
23
The X509 encode and decode routines encode and parse an
24
24
B<X509> structure, which represents an X509 certificate.
25
25
 
26
 
d2i_X509() attempts to decode B<len> bytes at B<*out>. If 
 
26
d2i_X509() attempts to decode B<len> bytes at B<*in>. If 
27
27
successful a pointer to the B<X509> structure is returned. If an error
28
28
occurred then B<NULL> is returned. If B<px> is not B<NULL> then the
29
29
returned structure is written to B<*px>. If B<*px> is not B<NULL>
30
30
then it is assumed that B<*px> contains a valid B<X509>
31
31
structure and an attempt is made to reuse it. If the call is
32
 
successful B<*out> is incremented to the byte following the
 
32
successful B<*in> is incremented to the byte following the
33
33
parsed data.
34
34
 
35
35
i2d_X509() encodes the structure pointed to by B<x> into DER format.