Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-gcrypt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-gcrypt
Commits
4c52cbf4
Unverified
Commit
4c52cbf4
authored
Jul 22, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify padding functions
parent
060e1af9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
padding.h
src/padding.h
+7
-5
No files found.
src/padding.h
View file @
4c52cbf4
...
...
@@ -25,11 +25,11 @@
*
*/
typedef
void
*
pad_f
(
struct
ws
*
ws
,
void
*
src
,
size_t
len
,
size_t
blocklen
,
typedef
void
*
pad_f
(
struct
ws
*
ws
,
const
void
*
src
,
size_t
len
,
size_t
blocklen
,
size_t
*
newlen
);
static
inline
void
*
pad
(
struct
ws
*
ws
,
void
*
src
,
size_t
len
,
size_t
blocklen
,
size_t
*
newlen
,
pad
(
struct
ws
*
ws
,
const
void
*
src
,
size_t
len
,
size_t
blocklen
,
size_t
*
newlen
,
size_t
*
padlen
)
{
void
*
dst
;
...
...
@@ -45,7 +45,8 @@ pad(struct ws *ws, void *src, size_t len, size_t blocklen, size_t *newlen,
}
static
void
*
pad_pkcs7
(
struct
ws
*
ws
,
void
*
src
,
size_t
len
,
size_t
blocklen
,
size_t
*
newlen
)
pad_pkcs7
(
struct
ws
*
ws
,
const
void
*
src
,
size_t
len
,
size_t
blocklen
,
size_t
*
newlen
)
{
size_t
padlen
;
unsigned
char
*
dst
;
...
...
@@ -59,7 +60,7 @@ pad_pkcs7(struct ws *ws, void *src, size_t len, size_t blocklen, size_t *newlen)
}
static
void
*
pad_iso7816
(
struct
ws
*
ws
,
void
*
src
,
size_t
len
,
size_t
blocklen
,
pad_iso7816
(
struct
ws
*
ws
,
const
void
*
src
,
size_t
len
,
size_t
blocklen
,
size_t
*
newlen
)
{
size_t
padlen
;
...
...
@@ -75,7 +76,8 @@ pad_iso7816(struct ws *ws, void *src, size_t len, size_t blocklen,
}
static
void
*
pad_x923
(
struct
ws
*
ws
,
void
*
src
,
size_t
len
,
size_t
blocklen
,
size_t
*
newlen
)
pad_x923
(
struct
ws
*
ws
,
const
void
*
src
,
size_t
len
,
size_t
blocklen
,
size_t
*
newlen
)
{
size_t
padlen
;
unsigned
char
*
dst
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment