MCPcopy Create free account

hub / github.com/DNSCrypt/dnscrypt-resolvers / functions

Functions118 in github.com/DNSCrypt/dnscrypt-resolvers

↓ 20 callersMethodClose
()
www/db.go:245
↓ 15 callersFunctionread_lp_string
Read a length-prefixed string. Returns (string, new_offset).
utils/stamp-info.py:40
↓ 9 callersMethod_encode_lp
Encode a string using LP (length-prefixed) format.
utils/update-cert-hashes.py:172
↓ 9 callersMethod_encode_lp
Encode a string using LP (length-prefixed) format.
utils/add-cert-hash.py:189
↓ 7 callersFunctionformat_props
Parse the properties byte into flags.
utils/stamp-info.py:72
↓ 6 callersFunctionread_vlp_list
Read a variable-length-prefixed list of items. Returns (list, new_offset).
utils/stamp-info.py:54
↓ 4 callersMethodGetAllStats
()
www/db.go:359
↓ 4 callersMethodRebuildStats
RebuildStats recomputes all resolver_stats from test_results. Call this once to migrate existing data, or to fix any inconsistencies.
www/db.go:460
↓ 4 callersMethod_encode_vlp
Encode items using VLP format.
utils/update-cert-hashes.py:159
↓ 4 callersMethod_encode_vlp
Encode items using VLP format.
utils/add-cert-hash.py:176
↓ 4 callersMethod_parse_vlp
Parse VLP (variable-length-prefixed) data.
utils/update-cert-hashes.py:142
↓ 4 callersMethod_parse_vlp
Parse VLP (variable-length-prefixed) data.
utils/add-cert-hash.py:159
↓ 4 callersFunctionbuildCertQuery
buildCertQuery builds a TXT certificate query for name, padded to padTo bytes.
www/tester.go:731
↓ 4 callersFunctionparseDBTime
parseDBTime parses a time string from the database, handling both RFC3339 format (returned by go-sqlite3 driver) and the space-separated format used w
www/db.go:18
↓ 3 callersFunctionisDigit
(b byte)
www/tester.go:592
↓ 3 callersFunctionread_lp_string
Read a length-prefixed string.
utils/add-doh-ip.py:36
↓ 3 callersMethodsendDNSQuery
sendDNSQuery sends a DNS query over an established connection and returns the response. The caller must set the connection deadline before calling thi
www/tester.go:476
↓ 3 callersFunctionwrite_lp_string
Write a length-prefixed string.
utils/add-doh-ip.py:43
↓ 2 callersFunctionNewParser
(dir string)
www/parser.go:31
↓ 2 callersFunctionNewTester
(db *DB, concurrency int, timeout time.Duration)
www/tester.go:48
↓ 2 callersMethodParseAll
()
www/parser.go:35
↓ 2 callersMethodTestAll
(resolvers []Resolver)
www/tester.go:73
↓ 2 callersFunctionbuildAnonPacket
buildAnonPacket constructs an anonymized DNSCrypt packet
www/tester.go:868
↓ 2 callersMethodcsv_entry
(self)
utils/format.py:67
↓ 2 callersMethoddoDoHRequest
(ctx context.Context, client *http.Client, urlStr string, wireFormat []byte, method string)
www/tester.go:369
↓ 2 callersFunctionget_cert_hashes
Connect to server via TLS and return TBS certificate hashes for certs sent by server.
utils/update-cert-hashes.py:260
↓ 2 callersFunctionpackTXTRR
packTXTRR unescapes a TXT record string from the dns library Copied from dnscrypt-proxy's dnsutils.go
www/tester.go:560
↓ 2 callersMethodparse
Parse a DNS stamp string into a DNSStamp object.
utils/update-cert-hashes.py:53
↓ 2 callersMethodparse
(raw_entry)
utils/format.py:28
↓ 2 callersFunctionparse_der_length
Parse DER length encoding at the given offset.
utils/update-cert-hashes.py:228
↓ 2 callersFunctionparse_der_length
Parse DER length encoding at the given offset. Returns (content_length, length_field_size) where length_field_size is the number of byte
utils/add-cert-hash.py:344
↓ 2 callersMethodraceUDPProbes
raceUDPProbes sends every probe to addr on its own UDP socket at the same time and returns the first response that reads back. Racing a large PQ-frien
www/tester.go:744
↓ 2 callersFunctionread_vlp_list
Read a variable-length-prefixed list.
utils/add-doh-ip.py:49
↓ 2 callersFunctionvalidateDNSCryptCert
"DNSC" validateDNSCryptCert validates a DNSCrypt certificate Certificate format (124 bytes minimum): - Magic: 4 bytes ("DNSC") - ES Version: 2 bytes (
www/tester.go:611
↓ 2 callersMethodvalidateDNSCryptResponse
validateDNSCryptResponse validates the DNS response and extracts DNSCrypt certificates
www/tester.go:522
↓ 2 callersMethodvalidateRelayResponse
validateRelayResponse checks that the response contains valid DNSCrypt certificate TXT records
www/tester.go:882
↓ 2 callersFunctionwrite_vlp_list
Write a variable-length-prefixed list.
utils/add-doh-ip.py:66
↓ 1 callersMethodClearResolverErrors
ClearResolverErrors updates all failed tests for a resolver to successful, setting their RTT to 0 and clearing error messages, then rebuilds stats. Re
www/db.go:714
↓ 1 callersMethodGetOrCreateStamp
(resolverID int64, stamp string)
www/db.go:270
↓ 1 callersMethodGetTestCount
GetTestCount returns the total number of test results and the timestamp of the most recent one
www/db.go:619
↓ 1 callersFunctionNewDB
(path string)
www/db.go:59
↓ 1 callersFunctionNewWebServer
(db *DB, addr string, hideLatency bool)
www/web.go:19
↓ 1 callersMethodOptimize
Optimize runs VACUUM to reclaim disk space and checkpoints the WAL file.
www/db.go:608
↓ 1 callersMethodPruneOldTests
PruneOldTests removes test results older than the given duration and updates stats accordingly. Also removes resolvers that have no remaining test res
www/db.go:559
↓ 1 callersMethodRebuildStatsIfNeeded
RebuildStatsIfNeeded rebuilds stats only if the table is empty but test_results has data.
www/db.go:443
↓ 1 callersMethodRecordTest
(resolverID int64, stamp string, success bool, rttMs int64, errMsg string)
www/db.go:283
↓ 1 callersMethodRemoveResolver
RemoveResolver removes a resolver by name along with all its test results, stamps, and stats. Returns an error if the resolver is not found.
www/db.go:635
↓ 1 callersMethodRemoveStaleResolvers
RemoveStaleResolvers removes resolvers that haven't had a successful response in the given duration. Only removes resolvers that have had at least one
www/db.go:495
↓ 1 callersMethodRemoveUnreliableResolvers
RemoveUnreliableResolvers removes all resolvers with reliability below the given percentage threshold. Returns the names of removed resolvers.
www/db.go:664
↓ 1 callersMethodStart
()
www/web.go:23
↓ 1 callersMethodUpsertResolver
(name, typ, description, sourceFile string)
www/db.go:249
↓ 1 callersFunctionadd_ip_to_doh_stamp
Add or replace the IP address in a DoH stamp.
utils/add-doh-ip.py:79
↓ 1 callersMethodcreateDoHClient
(serverAddr, hostname string)
www/tester.go:331
↓ 1 callersFunctioncreateTables
(db *sql.DB)
www/db.go:85
↓ 1 callersFunctiondddToByte
(s []byte)
www/tester.go:588
↓ 1 callersFunctiondecode_stamp
Decode a DNS stamp from its sdns:// URL format.
utils/add-doh-ip.py:21
↓ 1 callersFunctiondecode_stamp
Decode a DNS stamp from its sdns:// URL format.
utils/stamp-info.py:30
↓ 1 callersFunctionencode_stamp
Encode binary data to a DNS stamp URL.
utils/add-doh-ip.py:30
↓ 1 callersFunctionfilterFailures
filterFailures returns resolvers where the last test failed. A resolver is considered failing if it has a LastFail time that is more recent than LastS
www/main.go:188
↓ 1 callersMethodformat
(self)
utils/format.py:52
↓ 1 callersFunctionformat_ip
Format IP address for stamp: IPv6 must be in brackets.
utils/add-doh-ip.py:123
↓ 1 callersMethodformat_legacy
(self)
utils/format.py:60
↓ 1 callersFunctionformat_pk
Format a public key as colon-separated hex groups.
utils/stamp-info.py:81
↓ 1 callersFunctionget_cert_hashes
Connect to server via TLS and return TBS certificate hashes for certs sent by server. Args: host: IP address or hostname to connect
utils/add-cert-hash.py:250
↓ 1 callersMethodget_connection_address
Extract the host and port to connect to for TLS.
utils/update-cert-hashes.py:209
↓ 1 callersMethodget_connection_address
Extract the host and port to connect to for TLS.
utils/add-cert-hash.py:227
↓ 1 callersFunctionget_tbs_hash_from_der
Extract and hash the TBS (To Be Signed) certificate data.
utils/update-cert-hashes.py:240
↓ 1 callersFunctionget_tbs_hash_from_der
Extract and hash the TBS (To Be Signed) certificate data. The TBS certificate is the portion of the certificate that is signed, excludin
utils/add-cert-hash.py:305
↓ 1 callersMethodhandleAPIStats
(rw http.ResponseWriter, r *http.Request)
www/web.go:195
↓ 1 callersFunctionmain
()
utils/add-doh-ip.py:198
↓ 1 callersFunctionmain
()
utils/update-cert-hashes.py:456
↓ 1 callersFunctionmain
()
utils/stamp-info.py:284
↓ 1 callersFunctionmain
()
utils/add-cert-hash.py:449
↓ 1 callersFunctionmigrateSchema
migrateSchema migrates from the old schema (stamp column in test_results) to the new normalized schema (stamps table with stamp_id reference).
www/db.go:150
↓ 1 callersFunctionpadCertQueryTo
padCertQueryTo adds EDNS0 padding so the wire-format query reaches at least padTo bytes.
www/tester.go:713
↓ 1 callersMethodparse
(raw_entry)
utils/subset.py:19
↓ 1 callersMethodparse
Parse a DNS stamp string into a DNSStamp object.
utils/add-cert-hash.py:61
↓ 1 callersMethodparseFile
(path string, typ ResolverType)
www/parser.go:64
↓ 1 callersFunctionparse_stamp
Parse a DNS stamp and return its details as a dictionary.
utils/stamp-info.py:235
↓ 1 callersFunctionprint_stamp_info
Print stamp information in a readable format.
utils/stamp-info.py:262
↓ 1 callersFunctionprocess
(md_path, signatures_to_update)
utils/format.py:144
↓ 1 callersFunctionprocess
(names_path, md_path)
utils/subset.py:52
↓ 1 callersFunctionprocess_file
Process a resolver file and update DoH stamps for a specific resolver.
utils/add-doh-ip.py:132
↓ 1 callersFunctionprocess_file
Process the markdown file and update outdated certificate hashes.
utils/update-cert-hashes.py:384
↓ 1 callersFunctionprocess_resolver
Read the markdown file, find the resolver, add cert hashes to its stamps.
utils/add-cert-hash.py:364
↓ 1 callersFunctionread_lp_bytes
Read length-prefixed bytes. Returns (bytes, new_offset).
utils/stamp-info.py:47
↓ 1 callersMethodserialize
Serialize the stamp back to sdns:// string format.
utils/update-cert-hashes.py:177
↓ 1 callersMethodserialize
Serialize the stamp back to sdns:// string format.
utils/add-cert-hash.py:194
↓ 1 callersMethodtestDNSCrypt
(stamp stamps.ServerStamp)
www/tester.go:400
↓ 1 callersMethodtestDoH
(stamp stamps.ServerStamp)
www/tester.go:214
↓ 1 callersMethodtestDoQ
(stamp stamps.ServerStamp)
www/tester.go:695
↓ 1 callersMethodtestDoT
(stamp stamps.ServerStamp)
www/tester.go:651
↓ 1 callersMethodtestODoHRelay
(stamp stamps.ServerStamp)
www/tester.go:971
↓ 1 callersMethodtestODoHTarget
(stamp stamps.ServerStamp)
www/tester.go:918
↓ 1 callersMethodtestOne
(job TestJob)
www/tester.go:155
↓ 1 callersMethodtestRelay
(stamp stamps.ServerStamp)
www/tester.go:791
↓ 1 callersMethodupdateResolverStats
(resolverID int64, stamp string, success bool, rttMs int64, errMsg string)
www/db.go:306
↓ 1 callersMethodvalidateDoHCertHashes
validateDoHCertHashes validates that at least one certificate in the TLS chain matches one of the hashes specified in the stamp. This follows the same
www/tester.go:295
Method__init__
(self)
utils/update-cert-hashes.py:41
Method__init__
(self, name, description, stamps)
utils/format.py:22
next →1–100 of 118, ranked by callers