ecctools icon indicating copy to clipboard operation
ecctools copied to clipboard

error compiling keygen.c

Open Dr-Shams opened this issue 1 year ago • 1 comments

i am getting errors compiling keygen.c

keygen.c:152:66: warning: unknown conversion type character ‘\x0a’ in format [-Wformat=]
  152 |                                 fprintf(stderr,"OpenSSL error: %l\n",err);
      |                                                                  ^~
keygen.c:152:48: warning: too many arguments for format [-Wformat-extra-args]
  152 |                                 fprintf(stderr,"OpenSSL error: %l\n",err);
      |                                                ^~~~~~~~~~~~~~~~~~~~~
keygen.c:135:25: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-resul
]
  135 |                         fread(buffer_key,1,bytes,fd);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
keygen.c:145:25: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-resul
]
  145 |                         fread(buffer_key,1,bytes,fd);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
keygen.c:158:25: warning: ignoring return value of ‘getrandom’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  158 |                         getrandom(buffer_key,bytes,GRND_NONBLOCK);

Dr-Shams avatar Jun 11 '23 09:06 Dr-Shams

OK, those are only Warnings

keygen.c:145:25: warning:

i am going to try to correct them, but your program is already compiled you can try to run it

./keygen -b 256

albertobsd avatar Jun 11 '23 13:06 albertobsd