I had some problems with the argument parsing when calling create_tpm_key. This is an extract from create_tpm_key.c (main):
148: char *filename, c, *openssl_key = NULL;
[...]
155: while (1) {
156: option_index = 0;
157: c = getopt_long(argc, argv, "pe:q:s:ahw:",
158: long_options, &option_index)
159: if (c == -1)
160: break;
We're using gcc-4.3.2 for power-pc which (to my surprise!) treats "char" as
unsigned.
When there are no more arguments to parse getopt_long returns -1, which in our
case will be converted to 255. As a result, the comparison on line 159 never
returns true and independent of the parameters the usage section will be
displayed.
Attached you'll find a patch which solves the problem.
Best regards
Thomas
---------------------------------------------------------------------------------------------------------
This e-mail is confidential and may contain privileged information. It is
intended only for the addressees. If you have received this e-mail in error,
kindly notify us immediately by telephone or e-mail and delete the message from
your system.
---------------------------------------------------------------------------------------------------------
ppc-argument-parse.patch
Description: ppc-argument-parse.patch
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________ TrouSerS-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-tech
