Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
7e4ac028
Commit
7e4ac028
authored
6 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'teor/bug26986'
parents
01c73711
9118430b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changes/bug26986
+3
-0
3 additions, 0 deletions
changes/bug26986
src/lib/cc/torint.h
+10
-0
10 additions, 0 deletions
src/lib/cc/torint.h
src/tools/tor-print-ed-signing-cert.c
+3
-2
3 additions, 2 deletions
src/tools/tor-print-ed-signing-cert.c
with
16 additions
and
2 deletions
changes/bug26986
0 → 100644
+
3
−
0
View file @
7e4ac028
o Minor bugfixes (compilation):
- Use Windows-compatible format strings in tor-print-ed-signing-cert.c.
Fixes bug 26986; bugfix on master.
This diff is collapsed.
Click to expand it.
src/lib/cc/torint.h
+
10
−
0
View file @
7e4ac028
...
...
@@ -100,6 +100,16 @@ typedef int32_t ssize_t;
# define TOR_PRIuSZ "zu"
#endif
#ifdef _WIN32
# ifdef _WIN64
# define TOR_PRIdSZ PRId64
# else
# define TOR_PRIdSZ PRId32
# endif
#else
# define TOR_PRIdSZ "zd"
#endif
#ifndef SSIZE_MAX
#if (SIZEOF_SIZE_T == 4)
#define SSIZE_MAX INT32_MAX
...
...
This diff is collapsed.
Click to expand it.
src/tools/tor-print-ed-signing-cert.c
+
3
−
2
View file @
7e4ac028
...
...
@@ -7,6 +7,7 @@
#include
<time.h>
#include
"ed25519_cert.h"
#include
"lib/cc/torint.h"
/* TOR_PRIdSZ */
#include
"lib/crypt_ops/crypto_format.h"
#include
"lib/malloc/malloc.h"
...
...
@@ -49,8 +50,8 @@ main(int argc, char **argv)
ssize_t
parsed
=
ed25519_cert_parse
(
&
cert
,
certbuf
,
cert_body_len
);
if
(
parsed
<=
0
)
{
fprintf
(
stderr
,
"ed25519_cert_parse failed with return value %
zd
\n
"
,
parsed
);
fprintf
(
stderr
,
"ed25519_cert_parse failed with return value %
"
TOR_PRIdSZ
"
\n
"
,
parsed
);
return
-
5
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment