Enhance the sqlite3_user_add() interface to initialize the user

authentication logic.  Add test cases for the extra argument on the
end of the authorizer callback.

FossilOrigin-Name: 842c6da8f1a62bd13a1b4089a98b0835a46a2285
This commit is contained in:
drh
2014-09-11 16:19:31 +00:00
parent a000ca681a
commit 7883ecfcd4
7 changed files with 52 additions and 25 deletions
+1
View File
@@ -1010,6 +1010,7 @@ struct sqlite3_userauth {
/* Functions used only by user authorization logic */
int sqlite3UserAuthTable(const char*);
int sqlite3UserAuthCheckLogin(sqlite3*,const char*,u8*);
void sqlite3UserAuthInit(sqlite3*);
void sqlite3CryptFunc(sqlite3_context*,int,sqlite3_value**);
#endif /* SQLITE_USER_AUTHENTICATION */