summaryrefslogtreecommitdiff
path: root/pythonmod/interface.i
AgeCommit message (Collapse)AuthorLines
2026-05-27- Fix that the ratelimit is decremented on successfulW.C.A. Wijngaards-1/+2
referrals. Thanks to Qifan Zhang, Palo Alto Networks, for the report.
2025-09-30- Fix for #1344: Fix that respip and dns64 can be enabled at theW.C.A. Wijngaards-2/+2
same time, the client info is copied for attach_sub and add_sub calls. That makes respip work on dns64 synthesized answers, and also makes RPZ work with DNS64. The order for the modules is module-config: "respip dns64 validator iterator".
2024-12-02- For #1189, homogenize the input buffer size for dname_str().Yorgos Thessalonikefs-1/+1
2024-08-23- Merge patch to fix for glue that is outside of zone, withW.C.A. Wijngaards-0/+1
`harden-unverified-glue`, from Karthik Umashankar (Microsoft). Enabling this option protects the Unbound resolver against bad glue, that is unverified out of zone glue, by resolving them. It uses the records as last resort if there is no other working glue.
2024-04-25Update locking management for iter_fwd and iter_hints methods. (#1054)Yorgos Thessalonikefs-4/+4
fast reload, move most of the locking management to iter_fwd and iter_hints methods. The caller still has the ability to handle its own locking, if desired, for atomic operations on sets of different structs. Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
2024-04-03- fast-reload, unshared stub hints, making the structure locked, with an rwlock.W.C.A. Wijngaards-1/+5
2023-10-16- Expose the configured listening and outgoing interfaces, if any, asGeorge Thessalonikefs-0/+28
a list of strings in the Python 'config_file' class instead of the current Swig object proxy; fixes #79.
2023-10-16- Expose the script filename in the Python module environment 'mod_env'George Thessalonikefs-0/+8
instead of the config_file structure which includes the linked list of scripts in a multi Python module setup; fixes #79.
2023-07-21- Cleaner failure code for callback functions in interface.i.George Thessalonikefs-50/+81
2023-07-21Merge branch 'python_add_missing_callbacks' of ↵George Thessalonikefs-0/+80
https://github.com/fhriley/unbound into fhriley-python_add_missing_callbacks
2022-11-07NAT64 supportDavid Lamparter-2/+3
This implements #721. Includes documentation and some very basic tests. Please refer to doc for further detail.
2022-10-03PROXYv2 downstream support (#760)Yorgos Thessalonikefs-2/+2
2022-08-01- Fix the novel ghost domain issues CVE-2022-30698 and CVE-2022-30699.W.C.A. Wijngaards-2/+3
2022-03-01- Fix pythonmod for change in iter_dp_is_useless function prototype.W.C.A. Wijngaards-2/+3
2022-01-29- Update ratelimit code for recent serviced_query changes and moreGeorge Thessalonikefs-1/+2
accurate ratelimit calculation.
2021-11-29- Fix to make python module opt_list use opt_list_in.W.C.A. Wijngaards-2/+5
2021-11-13Fix typosDimitris Apostolou-1/+1
2021-08-12- For #519: yacc and lex. And fix python bindings, and test programW.C.A. Wijngaards-2/+2
unbound-dnstap-socket.
2021-06-18- Fix a number of warnings reported by the gcc analyzer.W.C.A. Wijngaards-12/+29
2021-01-08- For #391: more double casts in python start time calculation.W.C.A. Wijngaards-1/+1
2021-01-08- For #391: use struct timeval* start_time for callback information.W.C.A. Wijngaards-2/+2
2021-01-01Add start_time to reply callbacks so modules can compute the response time.Frank Riley-3/+21
2021-01-01Add missing callbacks to the python moduleFrank Riley-0/+80
2020-10-22- Fix #333: Unbound Segmentation Fault w/ log_info Functions FromW.C.A. Wijngaards-0/+26
Python Mod.
2020-08-05dlv removal, remove DLV references from man page and pythonmod interface.W.C.A. Wijngaards-2/+0
2020-07-22Fix python module len() implementationsTorbjörn Lönnemark-5/+5
They were all missing the 'self.' prefix when accessing the 'obj' instance variable, causing the following exception when attempting to call len() on (for example) a ReplyInfo_RRSet: File "/usr/lib/python3.7/site-packages/unboundmodule.py", line 377, in __len__ def __len__(self): return obj.rrset_count NameError: name 'obj' is not defined
2019-08-16- Remove warning about unknown cast-function-type warning pragma.W.C.A. Wijngaards-0/+3
2019-06-18Merge branch 'dev/all-merged/master' of git://github.com/episource/unbound ↵W.C.A. Wijngaards-1/+3
into episource-dev/all-merged/master
2019-05-16- Fix #31: swig 4.0 and python module.W.C.A. Wijngaards-88/+44
2019-03-02Merge branch 'dev/pythonmod-multi-instance/v1.9.0' into dev/all-merged/masterPhilipp Serr-1/+1
2019-03-02Support multiple python module instancesPhilipp Serr-1/+1
This commit adds proper support for multiple instances of the python module: When more than one instance is added to the module list, the first instance loads the first script specified in the `python:` configuration section. The second instance loads the second script, and so on. When there are more module instances in the module list than there are scripts in the `python:` section, an error is raised during initialization and unbound won't start. When more scripts than module instances are provided, the surplus scripts are ignored.
2019-03-02Add module_restart_next definition to swig filePhilipp Serr-0/+2
2019-02-28- Remove memory leak on pythonmod python2 script file init.Wouter Wijngaards-0/+8
- Remove swig gcc8 python function cast warnings, they are ignored. git-svn-id: file:///svn/unbound/trunk@5127 be551aaa-1e26-0410-a405-d3ace91eadb9
2019-02-20- Fix pythonmod include and sockaddr_un ifdefs for compile onWouter Wijngaards-0/+14
Windows, and for libunbound. git-svn-id: file:///svn/unbound/trunk@5118 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-11-22- review fixes for python module.Wouter Wijngaards-1/+2
git-svn-id: file:///svn/unbound/trunk@4969 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-11-22Fix compare signed with unsigned in python interface for pythonmodWouter Wijngaards-1/+1
git-svn-id: file:///svn/unbound/trunk@4968 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-11-22- With ./configure --with-pyunbound --with-pythonmoduleWouter Wijngaards-11/+33
PYTHON_VERSION=3.6 or with 2.7 unbound can compile and unit tests succeed for the python module. - pythonmod logs the python error and traceback on failure. git-svn-id: file:///svn/unbound/trunk@4966 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-11-20- Removed compile warnings in pythonmod sockaddr routines.Wouter Wijngaards-6/+15
git-svn-id: file:///svn/unbound/trunk@4963 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-11-20- Add patch from Jan Vcelak for pythonmod,Wouter Wijngaards-32/+203
add sockaddr_storage getters, add support for query callbacks, allow raw address access via comm_reply and update API documentation. git-svn-id: file:///svn/unbound/trunk@4962 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-08-22- #4140: Expose repinfo (comm_reply) to the inplace_callbacks. ThisGeorge Thessalonikefs-5/+12
gives access to reply information for the client's communication point when the callback is called before the mesh state (modules). Changes to C and Python's inplace_callback signatures were also necessary. git-svn-id: file:///svn/unbound/trunk@4870 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-06-14- Fix that first control-interface determines if TLS is used. WarnWouter Wijngaards-1/+1
when IP address interfaces are used without TLS. git-svn-id: file:///svn/unbound/trunk@4730 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-04-19- Can set tls authentication with forward-addr: IP#tls.auth.nameWouter Wijngaards-1/+1
And put the public cert bundle in tls-cert-bundle: "ca-bundle.pem". git-svn-id: file:///svn/unbound/trunk@4631 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-09-15- Spelling fixes, from Phil Porada.Wouter Wijngaards-1/+1
git-svn-id: file:///svn/unbound/trunk@4344 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-04-07- Fix pythonmod for cb changes.George Thessalonikefs-135/+141
- Some whitespace fixup. git-svn-id: file:///svn/unbound/trunk@4099 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-04-06- Fix pythonmod for cb changes.Wouter Wijngaards-26/+32
git-svn-id: file:///svn/unbound/trunk@4097 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-02-10more fixes for pythonmod.Wouter Wijngaards-3/+3
git-svn-id: file:///svn/unbound/trunk@4006 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-02-10- Fix pythonmod for typedef changes.Wouter Wijngaards-10/+10
git-svn-id: file:///svn/unbound/trunk@4005 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-12-06- Added generic EDNS code for registering known EDNS option codes,George Thessalonikefs-32/+395
bypassing the cache response stage and uniquifying mesh states. Four EDNS option lists were added to module_qstate (module_qstate.edns_opts_*) to store EDNS options from/to front/back side. - Added two flags to module_qstate (no_cache_lookup, no_cache_store) that control the modules' cache interactions. - Added code for registering inplace callback functions. The registered functions can be called just before replying with local data or Chaos, replying from cache, replying with SERVFAIL, replying with a resolved query, sending a query to a nameserver. The functions can inspect the available data and maybe change response/query related data (i.e. append EDNS options). - Updated Python module for the above. - Updated Python documentation. git-svn-id: file:///svn/unbound/trunk@3947 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-04-16#664: Fix issue with Python 3 mapping of FILE* using file_py3.i from ldns.Wouter Wijngaards-14/+14
git-svn-id: file:///svn/unbound/trunk@3403 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-04-01Fix pythonmod.Wouter Wijngaards-3/+3
git-svn-id: file:///svn/unbound/trunk@3382 be551aaa-1e26-0410-a405-d3ace91eadb9