RE: recent openssl patch is failing

2007-10-04 Thread Tamouh H.
> 
> > Anyone have tried the patch and experiencing the same issue ?
> >
> >   
> I applied it to 3 6.2-STABLE machines today worked flawlessly.,
> 
> You are using a /usr/src version that it _is_ supposed to 
> apply against right?
> Whats the $FreeBSD$ of the file it fails in. it should be
> 
>  1.1.1.12.6.2 - 1 aka 1.1.1.12.6.1
> 
> 

Philip, thanks for the help. I believe to have found the problem.

I didn't apply the older patch: 
http://security.freebsd.org/advisories/FreeBSD-SA-06:23.openssl.asc  which made 
a tiny change to the line  if (len-- == 0)  to  if (len-- <= 0)

Hence, when doing the new update, it failed. 

I've changed the patch file to recognize the older format and that seems to 
have fixed it.

Best,

Tamouh


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: recent openssl patch is failing

2007-10-04 Thread Philip M. Gollucci



Anyone have tried the patch and experiencing the same issue ?

  

I applied it to 3 6.2-STABLE machines today worked flawlessly.,

You are using a /usr/src version that it _is_ supposed to apply against 
right?

Whats the $FreeBSD$ of the file it fails in. it should be

1.1.1.12.6.2 - 1 aka 1.1.1.12.6.1



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


recent openssl patch is failing

2007-10-04 Thread Tamouh H.


Hello,

I've tried patching the latest openssl on FreeBSD 6.1 as per:

http://security.freebsd.org/advisories/FreeBSD-SA-07:08.openssl.asc

However, the patching fails mainly due to some problems with the patch on line 
1162 , and I can't seem to find out the reason for it. This had failed on 
multiple FBSD machines, so I'm pretty sure it is the patch.

Here is what the patch is producing:

openssl.patch 100% of 1051  B 5237 kBps
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--
|Index: crypto/openssl/ssl/ssl_lib.c
|===
|RCS file: /home/ncvs/src/crypto/openssl/ssl/ssl_lib.c,v
|retrieving revision 1.1.1.12.2.1
|diff -u -d -r1.1.1.12.2.1 ssl_lib.c
|--- crypto/openssl/ssl/ssl_lib.c   28 Sep 2006 13:02:36 -  
1.1.1.12.2.1
|+++ crypto/openssl/ssl/ssl_lib.c   3 Oct 2007 17:01:24 -
--
Patching file crypto/openssl/ssl/ssl_lib.c using Plan A...
Hunk #1 succeeded at 1149.
Hunk #2 failed at 1161.
1 out of 2 hunks failed--saving rejects to crypto/openssl/ssl/ssl_lib.c.rej
done

==

This is what ssl_lib.c.rej shows:

***
*** 1162,1181 
sk=s->session->ciphers;
for (i=0; iname; *cp; )
{
-   if (len-- <= 0)
-   {
-   *p='\0';
-   return(buf);
-   }
-   else
-   *(p++)= *(cp++);
}
*(p++)=':';
}
p[-1]='\0';
return(buf);
--- 1161,1181 
sk=s->session->ciphers;
for (i=0; iname);
+   if (n+1 > len)
{
+   if (p != buf)
+   --p;
+   *p='\0';
+   return buf;
}
+   strcpy(p,c->name);
+   p+=n;
*(p++)=':';
+   len-=n+1;
}
p[-1]='\0';
return(buf);

==

This is the error when doing make:

/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ssl_lib.c: In function 
`SSL_get_shared_ciphers':
/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ssl_lib.c:1167: error: 
`cp' undeclared (first use in this function)
/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ssl_lib.c:1167: error: 
(Each undeclared identifier is reported only once
/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ssl_lib.c:1167: error: 
for each function it appears in.)
*** Error code 1


Anyone have tried the patch and experiencing the same issue ?

Thanks,

Tamouh Hakmi




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"