Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
Christopher Ng
OpenLDAP
Commits
ebc4a8f1
Commit
ebc4a8f1
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Use uint32 not u_int as code requires 32 bit unsigned integers.
parent
7a2044db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/liblutil/sha1.c
+5
-4
5 additions, 4 deletions
libraries/liblutil/sha1.c
with
5 additions
and
4 deletions
libraries/liblutil/sha1.c
+
5
−
4
View file @
ebc4a8f1
...
...
@@ -20,6 +20,9 @@
* 34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F
*/
/*
* This code assumes uint32 is 32 bits and char is 8 bits
*/
#include
"portable.h"
#include
<ac/string.h>
...
...
@@ -67,13 +70,11 @@ lutil_SHA1Transform( uint32 *state, const unsigned char *buffer )
{
uint32
a
,
b
,
c
,
d
,
e
;
/* Assumes u_int is 32 bits and char 8 bits.
* I don't know why uint32 isn't used (or what the difference is). */
#ifdef SHA1HANDSOFF
u
_
int
block
[
16
];
uint
32
block
[
16
];
(
void
)
memcpy
(
block
,
buffer
,
64
);
#else
u
_
int
*
block
=
(
u_int
*
)
buffer
;
uint
32
*
block
=
(
u_int
32
*
)
buffer
;
#endif
/* Copy context->state[] to working vars */
...
...
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