transparently handle X9.42 DH parameters
[openssl.git] / crypto / pem / pem_lib.c
index 5a421fc4b6ae817ea79c75fed04d035a5270bc62..9e551d1795f913e1afe65bcce4b50af809d27c9f 100644 (file)
@@ -236,6 +236,9 @@ static int check_pem(const char *nm, const char *name)
                        }
                return 0;
                }
+       /* If reading DH parameters handle X9.42 DH format too */
+       if(!strcmp(nm,PEM_STRING_DHXPARAMS) &&
+               !strcmp(name,PEM_STRING_DHPARAMS)) return 1;
 
        /* Permit older strings */