diff options
author | drh <drh@noemail.net> | 2017-05-11 13:43:57 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-05-11 13:43:57 +0000 |
commit | 9418921c599b7ce7e9ffcc2b3b00f3ff4391b964 (patch) | |
tree | 3e114949433d43bceba2d829b0225544b3271566 /src/tclsqlite.c | |
parent | ee92eb80dbd0ee978c1ca33253a49e12ba7d3a3c (diff) | |
download | sqlite-9418921c599b7ce7e9ffcc2b3b00f3ff4391b964.tar.gz sqlite-9418921c599b7ce7e9ffcc2b3b00f3ff4391b964.zip |
New requirements marks and documentation for the authorizer.
FossilOrigin-Name: 3980ea0911b3ad3f86d7a7bdc6503f233315c274f473e18831e13eda2c238eeb
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r-- | src/tclsqlite.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c index 9df023b45..754775e8e 100644 --- a/src/tclsqlite.c +++ b/src/tclsqlite.c @@ -1033,9 +1033,16 @@ static int auth_callback( Tcl_DString str; int rc; const char *zReply; + /* EVIDENCE-OF: R-38590-62769 The first parameter to the authorizer + ** callback is a copy of the third parameter to the + ** sqlite3_set_authorizer() interface. + */ SqliteDb *pDb = (SqliteDb*)pArg; if( pDb->disableAuth ) return SQLITE_OK; + /* EVIDENCE-OF: R-56518-44310 The second parameter to the callback is an + ** integer action code that specifies the particular action to be + ** authorized. */ switch( code ){ case SQLITE_COPY : zCode="SQLITE_COPY"; break; case SQLITE_CREATE_INDEX : zCode="SQLITE_CREATE_INDEX"; break; |