<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-cert/src/encode.rs, branch main</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=main</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-07-23T10:13:34Z</updated>
<entry>
<title>tor-checkable: Rename `TimeBound::check_valid_*` to `if_valid_*`</title>
<updated>2026-07-23T10:13:34Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-20T16:40:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ca37f30a097696ce2ebd4e9945a4bdaebe086b31'/>
<id>urn:sha1:ca37f30a097696ce2ebd4e9945a4bdaebe086b31</id>
<content type='text'>
I find these names confusing.  To my mind "check" implies a function
returning `Result&lt;(), _&gt;`.

Some other APIs use `unwrap` here but I think `if` is good.
</content>
</entry>
<entry>
<title>Use new TimeBound name throughout the tree</title>
<updated>2026-07-16T15:47:50Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-16T14:32:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5f57903ab4a8c280acf8a5bec274c50d5f544fd6'/>
<id>urn:sha1:5f57903ab4a8c280acf8a5bec274c50d5f544fd6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>maint: Run maint/add_warning to deny string slices</title>
<updated>2026-06-09T15:36:01Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-09T15:36:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9f5752a77fb57052c06ead0eeae606831f1e8e97'/>
<id>urn:sha1:9f5752a77fb57052c06ead0eeae606831f1e8e97</id>
<content type='text'>
This commit executes maint/add_warning with the just added change to
deny string slices except in tests.

I recommend auditing this by checking out the previous commit followed
by running the script yourself and then verifying that the diff is
identical to this commit.

This commit makes cargo clippy fail.  We will add exceptions in the next
commit.
</content>
</entry>
<entry>
<title>tor-cert: Ed25519CertBuilder: do builder fn rename</title>
<updated>2026-04-29T16:49:21Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-28T09:58:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d90b703d0c4bc4ffb9068fb5c25fc78e72743961'/>
<id>urn:sha1:d90b703d0c4bc4ffb9068fb5c25fc78e72743961</id>
<content type='text'>
Change all call sites.

This completes the rename.
</content>
</entry>
<entry>
<title>tor-cert: Ed25519CertBuilder: do type rename everywhere</title>
<updated>2026-04-29T16:49:21Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-28T09:59:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=24f82c54e0d6d58544a2434d3ae12c3795f0b3f8'/>
<id>urn:sha1:24f82c54e0d6d58544a2434d3ae12c3795f0b3f8</id>
<content type='text'>
Abolish the type alias and change call references.
</content>
</entry>
<entry>
<title>tor-cert: Ed25519CertBuilder: rename from Ed25519CertConstructor</title>
<updated>2026-04-29T16:49:21Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-28T09:49:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=cbada95b4f5536eb90cf8b2ba6dc8d0570c017de'/>
<id>urn:sha1:cbada95b4f5536eb90cf8b2ba6dc8d0570c017de</id>
<content type='text'>
This is a perfectly ordinary builder type.  There isn't any reason why
it ought to be called "constructor".  And, nowadays, we have things in
tor-netdoc called Constructor that take a different approach.

Briefly, leave a temporary compat alias, to make diffs more comprehensible.

Currently this experimental, so no semver implications.
</content>
</entry>
<entry>
<title>tor-cert: Port to web-time-compat</title>
<updated>2026-03-26T19:20:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-03-26T13:46:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ef910cf3dad3957b3e7560e8f4f53559e9ef27c7'/>
<id>urn:sha1:ef910cf3dad3957b3e7560e8f4f53559e9ef27c7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cell, proto, cert: Simplify CERTS cell building.</title>
<updated>2026-03-19T15:43:38Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-03-19T15:43:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8a4cbe020879ae011c9e02197d824cbe20e2f736'/>
<id>urn:sha1:8a4cbe020879ae011c9e02197d824cbe20e2f736</id>
<content type='text'>
Formerly we required the caller for push_cert_body to specify the
type of the cert that they were pushing.  But in nearly every case,
the certificate object that the caller is holding knows what its
own type is!  This makes the tor_proto build_certs_cell function
a bit less error-prone, since we don't have to worry about mismatch.
</content>
</entry>
<entry>
<title>cert: Deduplicate expiry-in-hours logic</title>
<updated>2026-03-17T13:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-03-17T13:54:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d337afeb1023ea51ce85c0c21fe4ec830c096f49'/>
<id>urn:sha1:d337afeb1023ea51ce85c0c21fe4ec830c096f49</id>
<content type='text'>
These certificates use a weird expiration format: counting hours
since the unix epoch.  Previously we had it implemented in two
different places.  This patch centralizes it, since we are about to
become slightly more complicated.
</content>
</entry>
<entry>
<title>Remove unnecessary `doc(cfg(...))` attributes</title>
<updated>2025-12-05T02:40:50Z</updated>
<author>
<name>Neel Chauhan</name>
<email>neel@neelc.org</email>
</author>
<published>2025-11-01T23:25:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=26b40cb08b6b715ee80e2b9084810e07512a85c6'/>
<id>urn:sha1:26b40cb08b6b715ee80e2b9084810e07512a85c6</id>
<content type='text'>
Fixes part of #2193.

(Edits from nickm: I selected the cases here that I could verify
were correct from immediate context.)

Edited-by: Nick Mathewson &lt;nickm@torproject.org&gt;
</content>
</entry>
</feed>
