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

« back to all changes in this revision

Viewing changes to crypto/asn1/i2d_pu.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_PublicKey(EVP_PKEY *a, unsigned char **pp)
72
75
        {
80
83
        case EVP_PKEY_DSA:
81
84
                return(i2d_DSAPublicKey(a->pkey.dsa,pp));
82
85
#endif
 
86
#ifndef OPENSSL_NO_EC
 
87
        case EVP_PKEY_EC:
 
88
                return(i2o_ECPublicKey(a->pkey.ec, pp));
 
89
#endif
83
90
        default:
84
91
                ASN1err(ASN1_F_I2D_PUBLICKEY,ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE);
85
92
                return(-1);