summaryrefslogtreecommitdiffstats
path: root/Modules/binascii.c
Commit message (Collapse)AuthorAgeFilesLines
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-16/+0
| | | | This should match the situation in the 1.6b1 tree.
* Fix new compiler warnings. Unused var in compile.c. Argsize mismatchesTim Peters2000-08-151-1/+1
| | | | | | in binascii.c (only on platforms with signed chars -- although Py_CHARMASK is documented as returning an int, it only does so on platforms with signed chars).
* binascii_unhexlify(): Better error message, courtesy effbot.Barry Warsaw2000-08-151-5/+5
|
* After a brief conversation and code review with TP, adding two veryBarry Warsaw2000-08-151-22/+126
| | | | | | | | | | | | | | commonly used functions to convert an arbitrary binary string into a hexadecimal digit representation and back again. These are often (and often differently) implemented in Python. Best to have one common fast implementation. Specifically, binascii_hexlify(): a.k.a. b2a_hex() to return the hex representation of binary data. binascii_unhexlify(): a.k.a. a2b_hex() to do the inverse conversion (hex digits to binary data). The argument must have an even length, and must contain only hex digits, otherwise a TypeError is raised.
* Use METH_VARARGS instead of numeric constant 1 in method def. tablesAndrew M. Kuchling2000-08-031-13/+20
|
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-1/+1
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* ANSI-ficationPeter Schneider-Kamp2000-07-101-34/+11
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-291-10/+10
| | | | PyArg_ParseTuple() format string arguments as possible.
* Patch by Jim Ahlstrom to add crc32, a useful checksum functionGuido van Rossum2000-02-161-0/+141
| | | | | | | | | | | (e.g. used for ZIP files). The patch includes code that says: + Copyright (C) 1986 Gary S. Brown. You may use this program, or + code or tables extracted from it, as desired without restriction. My interpretation (and Jim's) is that Gary S Brown has no claims under copyright, patent or other rights or interests. Lawyers might disagree.
* Patch by Jason Trowbridge. (Followup to his PR#110.) (SlightlyGuido van Rossum1999-10-191-18/+69
| | | | | | | | | | | | reformatted.) - Illegal padding is now ignored. (Recommendation by GvR.) - Padding no longer removes characters from data string (resulting in lost data/strings with negative lengths). - Illegal characters outside the ASCII range are now ignored, instead of possibly being remapped to a valid character.
* Fix PR#110 -- bad input ("====") for a2b_base64() caused it to callGuido van Rossum1999-10-191-0/+2
| | | | _PyString_Resize() with a negative size.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Use the t# format where appropriate. Greg Stein.Guido van Rossum1998-10-081-3/+3
|
* Converted to new exception style (Jack)Guido van Rossum1997-10-081-6/+2
|
* Plug memory leak (DECREF doc string properly after inserting in dict).Guido van Rossum1997-08-041-0/+1
|
* Allow '@' character as end of line padding in uuencode format.Guido van Rossum1997-07-111-1/+3
| | | | | | | Not sure why this is generated, but this fixes a problem with a particular file that was received with the following final line: F-WE<-*A5]AY]%7>8'&!!(_Y<F*55_"*%46"<OFG=>_5(F/\'``!@
* Renamed.Roger E. Masse1997-01-161-79/+88
|
* Fix leak involving BuildValue("...O...").Guido van Rossum1997-01-121-3/+7
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Add unsigned char castGuido van Rossum1996-02-251-1/+1
|
* Fixed off-by-one error in rle-decode, and allow whitespace in base64Jack Jansen1996-01-221-5/+5
| | | | ascii input (thanks to Donald Beaudry for pointing these out)
* Allow '@' for ' ' in uuencoded files.Jack Jansen1995-11-141-2/+5
|
* Added base64 supportJack Jansen1995-10-041-0/+141
|
* Obscure bugfixJack Jansen1995-08-311-5/+2
|
* Added missing 'leftchar' initializer.Jack Jansen1995-08-141-2/+2
|
* Helper module for uuencode and binhex codersJack Jansen1995-08-071-0/+602