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

« back to all changes in this revision

Viewing changes to crypto/asn1/i2d_pr.c

  • 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:
67
67
#ifndef OPENSSL_NO_DSA
68
68
#include <openssl/dsa.h>
69
69
#endif
 
70
#ifndef OPENSSL_NO_EC
 
71
#include <openssl/ec.h>
 
72
#endif
70
73
 
71
74
int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp)
72
75
        {
83
86
                return(i2d_DSAPrivateKey(a->pkey.dsa,pp));
84
87
                }
85
88
#endif
 
89
#ifndef OPENSSL_NO_EC
 
90
        if (a->type == EVP_PKEY_EC)
 
91
                {
 
92
                return(i2d_ECPrivateKey(a->pkey.ec, pp));
 
93
                }
 
94
#endif
86
95
 
87
96
        ASN1err(ASN1_F_I2D_PRIVATEKEY,ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE);
88
97
        return(-1);