Allow asn1parse to print out VISIBLESTRING and some code needed for certificate
[openssl.git] / crypto / asn1 / pkcs8.c
index bd0d191530d4410ed31b71f950f2d266a8554be1..d2bc9ce134f9f97f55008ced719783e4c727cb08 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/asn1/pkcs8.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
@@ -62,8 +62,8 @@
 #include "objects.h"
 
 /*
- * ASN1err(ASN1_F_D2I_X509_KEY,ASN1_R_LENGTH_MISMATCH);
- * ASN1err(ASN1_F_X509_KEY_NEW,ASN1_R_BAD_GET_OBJECT);
+ * ASN1err(ASN1_F_D2I_X509_KEY,ERR_R_ASN1_LENGTH_MISMATCH);
+ * ASN1err(ASN1_F_X509_KEY_NEW,ERR_R_BAD_GET_ASN1_OBJECT_CALL);
  */
 
 int i2d_X509_KEY(a,pp)
@@ -122,6 +122,9 @@ X509 *a;
        if (a == NULL) return;
 
        i=CRYPTO_add_lock(&a->references,-1,CRYPTO_LOCK_X509_KEY);
+#ifdef REF_PRINT
+       REF_PRINT("X509_KEY",a);
+#endif
        if (i > 0) return;
 #ifdef REF_CHECK
        if (i < 0)