~ubuntu-branches/ubuntu/utopic/mariadb-5.5/utopic-security

« back to all changes in this revision

Viewing changes to sql/password.c

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2014-08-27 21:12:36 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20140827211236-se41hwfe4xy0hpef
* d/control: Removed Provides: libmysqlclient-dev (Closes: #759309)
* d/control: Removed Provides: libmysqld-dev with same motivation
* Re-introduced tha HPPA build patch as the upstream fix wasn't complete
* Fixed all kFreeBSD build and test suite issues
* Added Italian translation (Closes: #759813)

Show diffs side-by-side

added added

removed removed

Lines of Context:
425
425
 
426
426
/*
427
427
    Produce an obscure octet sequence from password and random
428
 
    string, recieved from the server. This sequence corresponds to the
 
428
    string, received from the server. This sequence corresponds to the
429
429
    password, but password can not be easily restored from it. The sequence
430
430
    is then sent to the server for validation. Trailing zero is not stored
431
431
    in the buf as it is not needed.
467
467
 
468
468
/*
469
469
    Check that scrambled message corresponds to the password; the function
470
 
    is used by server to check that recieved reply is authentic.
 
470
    is used by server to check that received reply is authentic.
471
471
    This function does not check lengths of given strings: message must be
472
472
    null-terminated, reply and hash_stage2 must be at least SHA1_HASH_SIZE
473
473
    long (if not, something fishy is going on).