Hi,
I have download and installed openssl with cygwin (I have openssl 0.9.8a version) Now I have download openssl patch ts-20060225-0_9_8a-patch.gz in C:\cygwin\tmp I want to extract this file with command: gzip -cd ts-20060225-0_9_8a-patch.gz | patch -p1 but I have this error: ts-20060225-0_9_8a-patch.gz: not in gzip format patch: command not found Why?? I want to create a Token Request with standard IETF 3161, I suppose the command is: Openssl ts –query –digest [HASH FILE] –no_nonce –out output.tsq But if I want to include ts command in a c++ .net project, Which files I must include?? Thanks for help. Sara |
In message <[hidden email]> on Wed, 12 Apr 2006 07:10:23 -0700 (PDT), "Sara978 (sent by Nabble.com)" <[hidden email]> said:
lists> gzip -cd ts-20060225-0_9_8a-patch.gz | patch -p1 lists> lists> but I have this error: lists> lists> ts-20060225-0_9_8a-patch.gz: not in gzip format lists> patch: command not found Take a quick look at ts-20060225-0_9_8a-patch.gz and see if it's already decompressed, in that case, you can simply do this: patch -p1 < ts-20060225-0_9_8a-patch.gz Cheers, Richard -- Richard Levitte [hidden email] http://richard.levitte.org/ "When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." -- C.S. Lewis |
I have tried to write:
patch -p1 < ts-20060225-0_9_8a-patch.gz But I have this error: bash-3.00$ patch -p1 < ts-20060225-0_9_8a-patch.gz can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: openssl/Configure |diff -u openssl/Configure:1.1.1.11 openssl/Configure:1.1.1.11.2.1 |--- openssl/Configure:1.1.1.11 Sat Oct 29 11:50:52 2005 |+++ openssl/Configure Sat Oct 29 13:10:03 2005 -------------------------- File to patch: ts-20060225-0_9_8a-patch.gz patching file ts-20060225-0_9_8a-patch.gz Hunk #1 FAILED at 1146. 1 out of 1 hunk FAILED -- saving rejects to file ts-20060225-0_9_8a-patch.gz.rej can't find file to patch at input line 17 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: openssl/Makefile |diff -u openssl/Makefile:1.1.1.3 openssl/Makefile:1.1.1.3.2.1 |--- openssl/Makefile:1.1.1.3 Sat Oct 29 11:50:51 2005 |+++ openssl/Makefile Sat Oct 29 13:10:03 2005 -------------------------- File to patch: |
"Sara978 (sent by Nabble.com)" <[hidden email]> writes:
> I have tried to write: > > patch -p1 < ts-20060225-0_9_8a-patch.gz You have to uncompress the patch file first: gunzip ts-20060225-0_9_8a-patch.gz patch -p1 <ts-20060225-0_9_8a-patch ----Scott. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
Hi, I have tried to run some test:
TEST 1: bash-3.00$ gzip -cd ts-20060225-0_9_8a-patch.gz gzip: ts-20060225-0_9_8a-patch.gz: not in gzip format TEST 2: bash-3.00$ gzip -cd ts-20060225-0_9_8a-patch.gz | patch -p1 gzip: ts-20060225-0_9_8a-patch.gz: not in gzip format TEST 3: bash-3.00$ gunzip -cd ts-20060225-0_9_8a-patch.gz | patch -p1 gunzip: ts-20060225-0_9_8a-patch.gz: not in gzip format TEST 4: bash-3.00$ gunzip ts-20060225-0_9_8a-patch.gz gunzip: ts-20060225-0_9_8a-patch.gz: not in gzip format TEST 5: bash-3.00$ patch -p1 <ts-20060225-0_9_8a-patch.gz</b> can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: openssl/Configure |diff -u openssl/Configure:1.1.1.11 openssl/Configure:1.1.1.11.2.1 |--- openssl/Configure:1.1.1.11 Sat Oct 29 11:50:52 2005 |+++ openssl/Configure Sat Oct 29 13:10:03 2005 -------------------------- File to patch: bash-3.00$ It's a problem of cygwin?? Or it's the patch zipped uncorrectly?? :( Thanks Sara |
Hello,
> Hi, I have tried to run some test: Try someting like that: # file ts-20060225-0_9_8a-patch.gz # head ts-20060225-0_9_8a-patch.gz (may see some garbage) # od -c ts-20060225-0_9_8a-patch.gz to see what this file look like. Best regards, -- Marek Marcola <[hidden email]> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [hidden email] Automated List Manager [hidden email] |
In reply to this post by Sara978
In message <[hidden email]> on Thu, 13 Apr 2006 01:03:15 -0700 (PDT), "Sara978 (sent by Nabble.com)" <[hidden email]> said:
lists> TEST 5: lists> bash-3.00$ patch -p1 <ts-20060225-0_9_8a-patch.gz lists> lists> can't find file to patch at input line 5 lists> Perhaps you used the wrong -p or --strip option? lists> The text leading up to this was: lists> -------------------------- lists> |Index: openssl/Configure lists> |diff -u openssl/Configure:1.1.1.11 openssl/Configure:1.1.1.11.2.1 lists> |--- openssl/Configure:1.1.1.11 Sat Oct 29 11:50:52 2005 lists> |+++ openssl/Configure Sat Oct 29 13:10:03 2005 lists> -------------------------- lists> File to patch: OK, since the "text leading up to this" section shows a perfectly sensible diff header, we can conclude that this file is NOT compressed. We can therefore rule out anything having to do with gunzip. Now, a few questions: 1. ARE YOU STANDING IN THE ROOT OF A OPENSSL SOURCE TREE WHEN YOU TRY THE PATCH? That's imperative 2. Have you looked at the file, you know, using something like 'more' or 'less'? Could it be that it's garbled in some way? If you still can't figure it out, just send me the file and I'll take a look at it. Cheers, Richard ----- Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte [hidden email] http://richard.levitte.org/ "When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." -- C.S. Lewis |
Free forum by Nabble | Edit this page |