summaryrefslogtreecommitdiff
path: root/sql/password.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge mysql.com:/opt/local/work/mysql-4.1-rootkonstantin@mysql.com2006-01-111-23/+23
|\ | | | | | | into mysql.com:/opt/local/work/mysql-5.0-root
| * A fix for Bug#13944 "libmysqlclient exporting sha1_result function":konstantin@mysql.com2006-01-111-23/+23
| | | | | | | | rename sha1_* to mysql_sha1_*
* | Reviewing new pushed codemonty@mysql.com2005-10-121-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | - CHAR() now returns binary string as default - CHAR(X*65536+Y*256+Z) is now equal to CHAR(X,Y,Z) independent of the character set for CHAR() - Test for both ETIMEDOUT and ETIME from pthread_cond_timedwait() (Some old systems returns ETIME and it's safer to test for both values than to try to write a wrapper for each old system) - Fixed new introduced bug in NOT BETWEEN X and X - Ensure we call commit_by_xid or rollback_by_xid for all engines, even if one engine has failed - Use octet2hex() for all conversion of string to hex - Simplify and optimize code
* | Bug#10504bar@mysql.com2005-09-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | Character set does not support traditional mode ctype_utf8.result, ctype_utf8.test: adding test case. password.c, mysql_com.h Changeing octet2hex availability from static to public. item_strfunc.cc: Result string is now checked to be well-formed. Warning/error is generated, depending on sql_mode.
* | fixes for windows 64-bit compiler warningsgeorg@lmy002.wdf.sap.corp2005-06-131-4/+4
| |
* | Merge with 4.1monty@mishka.local2004-12-221-2/+3
|\ \ | |/
| * sql/password.c: check for buffer overflow in check_scramble_323 (BUG#7187)serg@serg.mylan2004-12-111-2/+3
| |
* | merge with 4.1monty@mysql.com2004-10-291-1/+1
|\ \ | |/
| * Remove stale declaration, fix a typo in comment.konstantin@mysql.com2004-10-151-1/+1
| |
* | fixed & added comments (according to Igor's review and a bit more)bell@sanja.is.com.ua2004-10-071-2/+2
|/
* check_scramble_323 shuold ensure that the scramble has the correct lengthserg@serg.mylan2004-06-011-0/+2
|
* Made my_snprintf() behavior snprintf() compatible when printing %x arguments ↵dlenev@brandersnatch.localdomain2004-05-271-2/+2
| | | | | | | | | | | | (it should produce hex digits in lower case). (fixed version) Replaced _dig_vec array with two _dig_vec_upper/_dig_vec_lower arrays. Added extra argument to int2str function which controls case of digits you get. Replaced lot of invocations of int2str for decimal radix with more optimized int10_to_str() function. Removed unused my_itoa/my_ltoa functions.
* C cleanupsserg@serg.mylan2003-09-031-3/+3
|
* Style fixes, comments for 4.1.1 authorizationkostja@oak.local2003-07-181-48/+45
| | | | | Now special 1-byte packet is used for request of old password Fixed bug with --skip-grant-tables and acl_getroot
* Preliminary support for options --secure-auth, kostja@oak.local2003-07-081-44/+11
| | | | | | | | | --old-passwords Support for option --old-protocol was removed. Some test performed. Tests for SSL and replication are pending. More strict following to specification for --old-passwords is in the TODO.
* Bug fixes for authenticationkostja@oak.local2003-07-041-8/+4
| | | | OLD_PASSWORD made a keyword to allow set password=old_password('abc') constructions.
* First version of new authentification procedure: now authentification is ↵kostja@oak.local2003-07-011-498/+330
| | | | | | | | | | | | | | | | | | | | | | | | one-stage (instead of two-stage in 4.1) For now following tasks have been done: - PASSWORD() function was rewritten. PASSWORD() now returns SHA1 hash_stage2; for new passwords user.password contains '*'hash_stage2; sql_yacc.yy also fixed; - password.c: new functions were implemented, old rolled back to 4.0 state - server code was rewritten to use new authorization algorithm (check_user(), change user, and other stuff in sql/sql_parse.cc) - client code was rewritten to use new authorization algorithm (mysql_real_connect, myslq_authenticate in sql-common/client.c) - now server barks on 45-byte-length 4.1.0 passwords and refuses 4.1.0-style authentification. Users with 4.1.0 passwords are blocked (sql/sql_acl.cc) - mysqladmin.c was fixed to work correctly with new passwords Tests for 4.0-4.1.1, 4.1.1-4.1.1 (with or without db/password) logons was performed; mysqladmin also was tested. Additional check are nevertheless necessary.
* fixed bad merge (s/rnd/my_rnd/)serg@serg.mysql.com2003-03-201-3/+3
|
* Merge with 4.0.12monty@narttu.mysql.fi2003-03-191-6/+6
|\
| * - renamed "rnd" to "my_rnd" as the name was too generic (and is an exportedlenz@mysql.com2003-03-181-6/+6
| | | | | | | | | | | | | | | | symbol in libmysqlclient) (thanks to Dennis Haney for the initial patch) - cleanup: removed client/password.c (not used at all) and libmysql/password.c (should rather be a symlink to sql/password.c instead) - applied HPUX11 portability fix for char_val declaration to sql/password.c (taken from libmysql/password.c)
* | Fixed a lot of wrong memory references as reported by valgrindmonty@mashka.mysql.fi2003-02-121-23/+24
| | | | | | | | | | | | | | | | | | Portability fixes Added new client function: mysql_get_server_version() New server help code (From Victor Vagin) Fixed wrong usage of binary() Disabled RTREE usage for now.
* | Portability fixes (for windows)monty@mashka.mysql.fi2003-01-211-9/+5
| | | | | | | | Some changes to the prepared statement protocol to make it easier to use and faster.
* | Removed compiler warningsmonty@mashka.mysql.fi2003-01-181-8/+8
| |
* | postreview fix (SCRUM)bell@sanja.is.com.ua2002-12-281-1/+1
| | | | | | | | fixed layout
* | Minor new auth fixes peter@mysql.com2002-12-091-5/+15
| |
* | merge fixmonty@mashka.mysql.fi2002-12-061-1/+1
|\ \ | |/
| * Change of internal key_field=NULL handling to avoid error messages.monty@hundin.mysql.fi2002-12-031-1/+1
| | | | | | | | | | Optimized SELECT DISTINCT ... ORDER BY ... LIMIT Fixed reference to uninitalized variable
* | Basically minor code optimizations and cleanupspeter@mysql.com2002-12-051-1/+1
| |
* | SCRAM Remove spaces from most changed files.peter@mysql.com2002-12-051-119/+119
| | | | | | | | | | This alters not only my code so it looks like I'm not only one adding the spaces.
* | SCRUM: Montymise codepeter@mysql.com2002-11-301-29/+23
| | | | | | | | fix mysql_change_user() for old clients
* | SCRUM: Secure authpeter@mysql.com2002-11-301-0/+2
| | | | | | | | | | | | Implement mysql_change_user Get rid of double user search at authentication Some cleanups
* | Correct bug which exposed itself in rpl000017peter@mysql.com2002-11-291-4/+4
| | | | | | | | Commit for merge
* | SCRUM: Main change for Secure connection handling. Still needs some more ↵peter@mysql.com2002-11-241-46/+493
| | | | | | | | | | | | coding. Commit done for merge with newer version of code.
* | More work on secure authentication. Commit for mergepeter@mysql.com2002-11-051-6/+14
| |
* | One more commit to do the merge of new 4.1 tree peter@mysql.com2002-10-061-11/+36
| |
* | One more commit required to merge second pack of Monty's patches peter@mysql.com2002-10-031-17/+14
| |
* | Changeset to deal with 4.1 -> 4.0 merge peter@mysql.com2002-10-021-3/+58
|/
* Update copyrightmonty@hundin.mysql.fi2001-12-061-3/+3
| | | | Fixed memory leak on shutdown (Affects the embedded version & MyODBC)
* Changed to use my_global.hmonty@hundin.mysql.fi2001-09-141-1/+1
| | | | | Fixed problem with LIKE with latin1_de Added parsing support of UNSIGNED LONG LONG
* Lots of manual changesmonty@donna.mysql.com2001-01-251-1/+1
| | | | Changed 'static inline' to 'inline' for SCO new's compiler
* Import changesetbk@work.mysql.com2000-07-311-0/+191