xref: /netbsd-src/external/public-domain/sqlite/man/sqlite3_enable_load_extension.3 (revision a24efa7dea9f1f56c3bdb15a927d3516792ace1c)
1.Dd $Mdocdate$
2.Dt SQLITE3_ENABLE_LOAD_EXTENSION 3
3.Os
4.Sh NAME
5.Nm sqlite3_enable_load_extension
6.Nd Enable Or Disable Extension Loading
7.Sh SYNOPSIS
8.Ft int
9.Fo sqlite3_enable_load_extension
10.Fa "sqlite3 *db"
11.Fa "int onoff"
12.Fc
13.Sh DESCRIPTION
14So as not to open security holes in older applications that are unprepared
15to deal with extension loading, and as a means of
16disabling extension loading while evaluating user-entered
17SQL, the following API is provided to turn the sqlite3_load_extension()
18mechanism on and off.
19.Pp
20Extension loading is off by default.
21Call the sqlite3_enable_load_extension() routine with onoff==1 to turn
22extension loading on and call it with onoff==0 to turn it back off
23again.
24.Sh SEE ALSO
25.Xr sqlite3_load_extension 3
26