~rick-fdd/pyopenssl/rand_bytes2

« back to all changes in this revision

Viewing changes to src/crypto/pkcs12.c

  • Committer: Jean-Paul Calderone
  • Date: 2009-05-27 18:06:48 UTC
  • Revision ID: exarkun@divmod.com-20090527180648-gofifvzx3nxlibkw
Change docstrings from being C programmer oriented to being Python programmer oriented

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
static char crypto_PKCS12_get_certificate_doc[] = "\n\
25
25
Return certificate portion of the PKCS12 structure\n\
26
26
\n\
27
 
Arguments: self - The PKCS12 object\n\
28
 
           args - The Python argument tuple, should be empty\n\
29
 
Returns:   X509 object containing the certificate\n\
 
27
@return: X509 object containing the certificate\n\
30
28
";
31
29
static PyObject *
32
30
crypto_PKCS12_get_certificate(crypto_PKCS12Obj *self, PyObject *args)
41
39
static char crypto_PKCS12_get_privatekey_doc[] = "\n\
42
40
Return private key portion of the PKCS12 structure\n\
43
41
\n\
44
 
Arguments: self - The PKCS12 object\n\
45
 
           args - The Python argument tuple, should be empty\n\
46
 
Returns:   PKey object containing the private key\n\
 
42
@returns: PKey object containing the private key\n\
47
43
";
48
44
static PyObject *
49
45
crypto_PKCS12_get_privatekey(crypto_PKCS12Obj *self, PyObject *args)
58
54
static char crypto_PKCS12_get_ca_certificates_doc[] = "\n\
59
55
Return CA certificates within of the PKCS12 object\n\
60
56
\n\
61
 
Arguments: self - The PKCS12 object\n\
62
 
           args - The Python argument tuple, should be empty\n\
63
 
Returns:   A newly created tuple containing the CA certificates in the chain,\n\
64
 
           if any are present, or None if no CA certificates are present.\n\
 
57
@return: A newly created tuple containing the CA certificates in the chain,\n\
 
58
         if any are present, or None if no CA certificates are present.\n\
65
59
";
66
60
static PyObject *
67
61
crypto_PKCS12_get_ca_certificates(crypto_PKCS12Obj *self, PyObject *args)