Correct wrong usage information.
[openssl.git] / apps / ecdsaparam.c
index 10715add80abbf18abc3d75827f5fe91652f7b0a..ab6a428d0850af2aaa3fa6f693e120dac9837deb 100644 (file)
@@ -336,7 +336,7 @@ bad:
                BIO_printf(bio_err," -outform arg       output format - DER or PEM\n");
                BIO_printf(bio_err," -in arg            input file\n");
                BIO_printf(bio_err," -out arg           output file\n");
-               BIO_printf(bio_err," -text              print the key in text\n");
+               BIO_printf(bio_err," -text              print as text\n");
                BIO_printf(bio_err," -C                 Output C code\n");
                BIO_printf(bio_err," -check             validate the ec parameters\n");
                BIO_printf(bio_err," -noout             no output\n");
@@ -431,7 +431,8 @@ bad:
                        goto end;
                ecdsa->group = EC_GROUP_new_by_name(curve_type);
                if (named_curve)
-                       ECDSA_set_parameter_flags(ecdsa, ECDSA_FLAG_NAMED_CURVE);
+                       EC_GROUP_set_asn1_flag(ecdsa->group, 
+                                               OPENSSL_EC_NAMED_CURVE);
        }
        else if (informat == FORMAT_ASN1)
                ecdsa = d2i_ECDSAParameters_bio(in,NULL);