[openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-02-06 Thread Rich Salz via RT
There's now a manpage that explains where and when engines can be named. :)
Not changing the behavior back to what it was, sorry.
Closing the ticket.
--
Rich Salz, OpenSSL dev team; rs...@openssl.org


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4194
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-03 Thread Salz, Rich via RT
The old style of complete intermix of flags and parameters is not going to 
happen.


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-03 Thread Salz, Rich via RT
Tweaked, sigh.
; ./util/opensslwrap.sh engine - dynamic -pre 
engine: Cannot mix flags and engine names.
engine: Use -help for summary.
exit 1


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-03 Thread Roumen Petrov via RT
Salz, Rich via RT wrote:
> Tweaked, sigh.
> ; ./util/opensslwrap.sh engine - dynamic -pre 
> engine: Cannot mix flags and engine names.
> engine: Use -help for summary.
>  exit 1
>
If engine name cannot be at any position then please keep it as is. i.e. 
at last position. In this case please correct documentation with line in 
change log.


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-03 Thread Richard Levitte via RT
The different subcommands act differently in this regard. I think it's time 
they get streamlined, and yes, I agree with the "any order" paradigm. 

I might do this tonight... 

Cheers 
Richard 

Roumen Petrov via RT  skrev: (3 januari 2016 19:31:29 CET)
>Salz, Rich via RT wrote:
>> Tweaked, sigh.
>> ; ./util/opensslwrap.sh engine - dynamic -pre 
>> engine: Cannot mix flags and engine names.
>> engine: Use -help for summary.
>>  exit 1
>>
>If engine name cannot be at any position then please keep it as is.
>i.e. 
>at last position. In this case please correct documentation with line
>in 
>change log.
>
>
>___
>openssl-dev mailing list
>To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-03 Thread Richard Levitte via RT
Never mind that comment. Wrong thread... 

Richard Levitte via RT  skrev: (3 januari 2016 19:55:13 CET)
>The different subcommands act differently in this regard. I think it's
>time they get streamlined, and yes, I agree with the "any order"
>paradigm. 
>
>I might do this tonight... 
>
>Cheers 
>Richard 
>
>Roumen Petrov via RT  skrev: (3 januari 2016 19:31:29
>CET)
>>Salz, Rich via RT wrote:
>>> Tweaked, sigh.
>>> ; ./util/opensslwrap.sh engine - dynamic -pre 
>>> engine: Cannot mix flags and engine names.
>>> engine: Use -help for summary.
>>>  exit 1
>>>
>>If engine name cannot be at any position then please keep it as is.
>>i.e. 
>>at last position. In this case please correct documentation with line
>>in 
>>change log.
>>
>>
>>___
>>openssl-dev mailing list
>>To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-03 Thread Roumen Petrov via RT
Salz, Rich via RT wrote:
> Please see this:
>  
> https://github.com/openssl/openssl/compare/master...richsalz:rt4194?expand=1
>
It should fail with openssl engine - dynamic -pre 
SO_PATH:/lib/libfoo.so 

Help string looks good.

Roumen


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-03 Thread Salz, Rich via RT
So you're saying just close this ticket?


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-03 Thread Salz, Rich
So you're saying just close this ticket?
___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-03 Thread Roumen Petrov via RT
Salz, Rich via RT wrote:
> So you're saying just close this ticket?
>
No. My request is to restore flexible engine command line and optionally 
help string.
I only disagree with proposed partial correction for command line.


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-02 Thread Roumen Petrov via RT
Rich Salz via RT wrote:
> [SNIP]
> out = dup_bio_out(FORMAT_TEXT);
> - prog = opt_init(argc, argv, engine_options);
> if (!engines || !pre_cmds || !post_cmds)
> goto end;
> + while ((argv1 = argv[1]) != NULL && *argv1 != '-') {
> + sk_OPENSSL_STRING_push(engines, *argv1);
> + argc--;
> + argv++;
> + }
> + prog = opt_init(argc, argv, engine_options);
>
[SNIP]
Above patch is not complete. It seems to opt_init stop processing on 
first non-option argument.
In sample like :
openssl engine dynamic \
  -pre SO_PATH:/lib/libfoo.so \
  -pre ID:foo \
  -pre LOAD \
  -pre "CMD_FOO:some input data"

Arguments after dynamic are considered as engines The code try to use 
engines like "-pre",  "ID:foo" and "CMD_FOO:some input data".


Another sample is "Or to simply see the list of commands supported 
by the "foo" ENGINE;

openssl engine - dynamic \
  -pre SO_PATH:/lib/libfoo.so \
  -pre ID:foo \
  -pre LOAD
"
In above case engine is between "normal" arguments.

Roumen


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2016-01-02 Thread Salz, Rich via RT
Please see this:
https://github.com/openssl/openssl/compare/master...richsalz:rt4194?expand=1


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2015-12-29 Thread Roumen Petrov via RT
Salz, Rich via RT wrote:
> I don't know that I would call it a regression, but rather a difference. :)
> I'll fix the summary but not the old uncommon behavior.

Unlike other commands engine is flexible and documented behaviour (see 
previous post with quoted text).
As result in samples first is engine name then commands.
Just search in internet for samples - expect some recent openssl 
tutorial almost all other samples use name before options.

Request is only for engine. It is not for speed command for example.

This is reason to call issue regression.

Regards,
Roumen Petrov




___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4194] engine command regression in 1.1

2015-12-29 Thread Rich Salz via RT
The patch is wrong, this one is better.

diff --git a/apps/engine.c b/apps/engine.c
index c373df5..ab663ea 100644
--- a/apps/engine.c
+++ b/apps/engine.c
@@ -312,12 +312,17 @@ int engine_main(int argc, char **argv)
BIO *out;
const char *indent = " ";
OPTION_CHOICE o;
- char *prog;
+ char *prog, *argv1;

out = dup_bio_out(FORMAT_TEXT);
- prog = opt_init(argc, argv, engine_options);
if (!engines || !pre_cmds || !post_cmds)
goto end;
+ while ((argv1 = argv[1]) != NULL && *argv1 != '-') {
+ sk_OPENSSL_STRING_push(engines, *argv1);
+ argc--;
+ argv++;
+ }
+ prog = opt_init(argc, argv, engine_options);
while ((o = opt_next()) != OPT_EOF) {
switch (o) {
case OPT_EOF:

--
Rich Salz, OpenSSL dev team; rs...@openssl.org

___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2015-12-29 Thread Salz, Rich via RT
Does this diff fix it?
; g diff apps/engine.c
diff --git a/apps/engine.c b/apps/engine.c
index c373df5..3c0ff96 100644
--- a/apps/engine.c
+++ b/apps/engine.c
@@ -312,12 +312,17 @@ int engine_main(int argc, char **argv)
 BIO *out;
 const char *indent = " ";
 OPTION_CHOICE o;
-char *prog;
+char *prog, *argv1;

 out = dup_bio_out(FORMAT_TEXT);
 prog = opt_init(argc, argv, engine_options);
 if (!engines || !pre_cmds || !post_cmds)
 goto end;
+while ((argv1 = argv[1]) != NULL && *argv1 != '-') {
+sk_OPENSSL_STRING_push(engines, *argv1);
+argc--;
+argv++;
+}
 while ((o = opt_next()) != OPT_EOF) {
 switch (o) {
 case OPT_EOF:


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2015-12-29 Thread Salz, Rich
Does this diff fix it?
; g diff apps/engine.c
diff --git a/apps/engine.c b/apps/engine.c
index c373df5..3c0ff96 100644
--- a/apps/engine.c
+++ b/apps/engine.c
@@ -312,12 +312,17 @@ int engine_main(int argc, char **argv)
 BIO *out;
 const char *indent = " ";
 OPTION_CHOICE o;
-char *prog;
+char *prog, *argv1;

 out = dup_bio_out(FORMAT_TEXT);
 prog = opt_init(argc, argv, engine_options);
 if (!engines || !pre_cmds || !post_cmds)
 goto end;
+while ((argv1 = argv[1]) != NULL && *argv1 != '-') {
+sk_OPENSSL_STRING_push(engines, *argv1);
+argc--;
+argv++;
+}
 while ((o = opt_next()) != OPT_EOF) {
 switch (o) {
 case OPT_EOF:

___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4194] engine command regression in 1.1

2015-12-22 Thread Salz, Rich via RT
I don't know that I would call it a regression, but rather a difference. :)
I'll fix the summary but not the old uncommon behavior.


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4194] engine command regression in 1.1

2015-12-21 Thread Roumen Petrov via RT
Hello,

OpenSSL engine command allows user to specify cryptographic module name 
at any position.
For instance README.ENGINE recommend following:
   openssl engine dynamic \
 -pre SO_PATH:/lib/libfoo.so \
   

The master branch (future 1.1) requires engine names to be specified 
after all options. This is regression introduced by new common " 
option-parsing".

Also new summary lack information for engine name as command line argument.


Regards,
Roumen Petrov

___
openssl-bugs-mod mailing list
openssl-bugs-...@openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod

___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev