Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for preparing the encrypted password (PQencryptPasswordConn) #576

Merged
merged 13 commits into from
May 20, 2018

Commits on Jul 17, 2017

  1. Added support for preparing the encrypted password of a PostgreSQL

    password using the libpq functions - 'PQencryptPasswordConn', and
    'PQencryptPassword'.
    asheshv committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    cfb0937 View commit details
    Browse the repository at this point in the history
  2. Using 'Text_FromUTF8' macro for transforming the encrypted C string to

    Python string to make it Python 3 compatible.
    asheshv committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    78eb80d View commit details
    Browse the repository at this point in the history
  3. When compiled with libpq version < 10, it raises 'psycopg2.NotSupport…

    …edError' (not, psycopg2.ProgrammingError).
    asheshv committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    2c1966a View commit details
    Browse the repository at this point in the history
  4. 'encrypt_password' raises 'psycopg2.NotSupportedErorr' exception for

    server version >= 10, when compiled using libpq version < 10, when no
    algorithm is specified.
    asheshv committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    e089d94 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2017

  1. Configuration menu
    Copy the full SHA
    6e0edf7 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2017

  1. Moving the encrypt_password method from the connection class to the

    psycopgmodule, and exported it from psycopg2.extensions as per review
    comments.
    asheshv committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    84d4058 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2018

  1. Configuration menu
    Copy the full SHA
    1bec2bd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36f0db8 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2018

  1. Configuration menu
    Copy the full SHA
    0161d54 View commit details
    Browse the repository at this point in the history
  2. Fixed code flow in encrypt_password()

    Fixed several shortcomings highlighted in psycopg#576 and not fixed as
    requested.
    
    Also fixed broken behaviour of ignoring the algorithm if the connection
    is missing.
    dvarrazzo committed May 20, 2018
    Configuration menu
    Copy the full SHA
    a306390 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9e4f89a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    abca14d View commit details
    Browse the repository at this point in the history
  5. Fixed refcount handling in encrypt_password

    Added tests to check bad types, which discovered the above problem: on
    type error we would have decref'd on exit something that was only
    borrowed (because we wouldn't have performed matching increfs).
    dvarrazzo committed May 20, 2018
    Configuration menu
    Copy the full SHA
    9cf658e View commit details
    Browse the repository at this point in the history