OpenSSL CVS Repository
http://cvs.openssl.org/
____________________________________________________________
________________
Server: cvs.openssl.org Name: Dr.
Stephen Henson
Root: /v/openssl/cvs Email: steve openssl.org
Module: openssl Date:
11-Apr-2007 14:26:54
Branch: HEAD Handle:
2007041113265201
Modified files:
openssl/crypto/x509v3 v3_utl.c x509v3.h
Log:
Constification.
Summary:
Revision Changes Path
1.37 +3 -3 openssl/crypto/x509v3/v3_utl.c
1.113 +2 -2 openssl/crypto/x509v3/x509v3.h
____________________________________________________________
________________
patch -p0 <<' .'
Index: openssl/crypto/x509v3/v3_utl.c
============================================================
================
$ cvs diff -u -r1.36 -r1.37 v3_utl.c
--- openssl/crypto/x509v3/v3_utl.c 3 Feb 2007 17:32:49
-0000 1.36
+++ openssl/crypto/x509v3/v3_utl.c 11 Apr 2007 12:26:52
-0000 1.37
 -360,10 +360,10 
*   (Contents of buffer are always kept in ASCII, also
on EBCDIC machines)
*/
-char *hex_to_string(unsigned char *buffer, long len)
+char *hex_to_string(const unsigned char *buffer, long
len)
{
char *tmp, *q;
- unsigned char *p;
+ const unsigned char *p;
int i;
const static char hexdig[] =
"0123456789ABCDEF";
if(!buffer || !len) return NULL;
 -389,7 +389,7 
* a buffer
*/
-unsigned char *string_to_hex(char *str, long *len)
+unsigned char *string_to_hex(const char *str, long *len)
{
unsigned char *hexbuf, *q;
unsigned char ch, cl, *p;
 .
patch -p0 <<' .'
Index: openssl/crypto/x509v3/x509v3.h
============================================================
================
$ cvs diff -u -r1.112 -r1.113 x509v3.h
--- openssl/crypto/x509v3/x509v3.h 6 Dec 2006 13:36:48
-0000 1.112
+++ openssl/crypto/x509v3/x509v3.h 11 Apr 2007 12:26:53
-0000 1.113
 -616,8 +616,8 
X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit,
void *ext_struc);
int X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int
nid, void *value, int crit, unsigned long flags);
-char *hex_to_string(unsigned char *buffer, long len);
-unsigned char *string_to_hex(char *str, long *len);
+char *hex_to_string(const unsigned char *buffer, long
len);
+unsigned char *string_to_hex(const char *str, long
*len);
int name_cmp(const char *name, const char *cmp);
void X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE)
*val, int indent,
 .
____________________________________________________________
__________
OpenSSL Project http://www.openssl.org
CVS Repository Commit List
openssl-cvs openssl.org
Automated List Manager
majordomo openssl.org
|