This commit was generated by cvs2svn to track changes on a CVS vendor
[openssl.git] / crypto / rsa / rsa_sign.c
index 7c815ed257e20f23f0315b0b87c171c1c6c201cb..e38911146af40f87510b07bb553d58cf232998db 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/rsa/rsa_sign.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
@@ -154,9 +154,11 @@ RSA *rsa;
 
        p=s;
        sig=d2i_X509_SIG(NULL,&p,(long)i);
+
        if (sig == NULL) goto err;
        sigtype=OBJ_obj2nid(sig->algor->algorithm);
 
+
 #ifdef RSA_DEBUG
        /* put a backward compatability flag in EAY */
        fprintf(stderr,"in(%s) expect(%s)\n",OBJ_nid2ln(sigtype),
@@ -170,7 +172,7 @@ RSA *rsa;
                        (sigtype == NID_md2WithRSAEncryption)))
                        {
                        /* ok, we will let it through */
-#ifndef WIN16
+#if !defined(NO_STDIO) && !defined(WIN16)
                        fprintf(stderr,"signature has problems, re-make with post SSLeay045\n");
 #endif
                        }