Make NO_RSA compile with pedantic.
[openssl.git] / crypto / asn1 / i2d_r_pu.c
index eabc0ba8925e86618c66527e527b95db5a6e5b54..142392f1ae4057afa6096c8d82440b7621b04def 100644 (file)
@@ -56,6 +56,7 @@
  * [including the GNU Public Licence.]
  */
 
+#ifndef NO_RSA
 #include <stdio.h>
 #include "cryptlib.h"
 #include <openssl/bn.h>
 #include <openssl/objects.h>
 #include <openssl/asn1_mac.h>
 
-/*
- * ASN1err(ASN1_F_D2I_RSAPUBLICKEY,ERR_R_ASN1_LENGTH_MISMATCH);
- * ASN1err(ASN1_F_I2D_RSAPUBLICKEY,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE);
- */
-
 int i2d_RSAPublicKey(RSA *a, unsigned char **pp)
        {
        BIGNUM *num[2];
@@ -113,4 +109,10 @@ int i2d_RSAPublicKey(RSA *a, unsigned char **pp)
        *pp=p;
        return(t);
        }
+#else /* !NO_RSA */
+
+# if PEDANTIC
+static void *dummy=&dummy;
+# endif
 
+#endif