Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
91b29c55
Commit
91b29c55
authored
Sep 24, 2004
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
size_t instead of confusing ssize_t
parent
5ccf1eb5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
skeletons/ber_tlv_length.c
skeletons/ber_tlv_length.c
+1
-2
skeletons/ber_tlv_length.h
skeletons/ber_tlv_length.h
+2
-2
skeletons/ber_tlv_tag.c
skeletons/ber_tlv_tag.c
+1
-2
skeletons/ber_tlv_tag.h
skeletons/ber_tlv_tag.h
+2
-2
No files found.
skeletons/ber_tlv_length.c
View file @
91b29c55
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
* Redistribution and modifications are permitted subject to BSD license.
* Redistribution and modifications are permitted subject to BSD license.
*/
*/
#include <asn_internal.h>
#include <asn_internal.h>
#include <constr_TYPE.h>
#include <ber_tlv_length.h>
#include <ber_tlv_length.h>
#include <ber_tlv_tag.h>
#include <ber_tlv_tag.h>
...
@@ -117,7 +116,7 @@ ber_skip_length(int _is_constructed, void *ptr, size_t size) {
...
@@ -117,7 +116,7 @@ ber_skip_length(int _is_constructed, void *ptr, size_t size) {
/* UNREACHABLE */
/* UNREACHABLE */
}
}
s
s
ize_t
size_t
der_tlv_length_serialize
(
ber_tlv_len_t
len
,
void
*
bufp
,
size_t
size
)
{
der_tlv_length_serialize
(
ber_tlv_len_t
len
,
void
*
bufp
,
size_t
size
)
{
size_t
required_size
;
/* Size of len encoding */
size_t
required_size
;
/* Size of len encoding */
uint8_t
*
buf
=
(
uint8_t
*
)
bufp
;
uint8_t
*
buf
=
(
uint8_t
*
)
bufp
;
...
...
skeletons/ber_tlv_length.h
View file @
91b29c55
...
@@ -31,10 +31,10 @@ ssize_t ber_skip_length(int _is_constructed, void *bufptr, size_t size);
...
@@ -31,10 +31,10 @@ ssize_t ber_skip_length(int _is_constructed, void *bufptr, size_t size);
/*
/*
* This function serializes the length (L from TLV) in DER format.
* This function serializes the length (L from TLV) in DER format.
* It always return number of bytes necessary to represent the length,
* It always return
s
number of bytes necessary to represent the length,
* it is a caller's responsibility to check the return value
* it is a caller's responsibility to check the return value
* against the supplied buffer's size.
* against the supplied buffer's size.
*/
*/
s
s
ize_t
der_tlv_length_serialize
(
ber_tlv_len_t
len
,
void
*
bufptr
,
size_t
size
);
size_t
der_tlv_length_serialize
(
ber_tlv_len_t
len
,
void
*
bufptr
,
size_t
size
);
#endif
/* _BER_TLV_LENGTH_H_ */
#endif
/* _BER_TLV_LENGTH_H_ */
skeletons/ber_tlv_tag.c
View file @
91b29c55
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
* Redistribution and modifications are permitted subject to BSD license.
* Redistribution and modifications are permitted subject to BSD license.
*/
*/
#include <asn_internal.h>
#include <asn_internal.h>
#include <constr_TYPE.h>
#include <ber_tlv_tag.h>
#include <ber_tlv_tag.h>
#include <errno.h>
#include <errno.h>
...
@@ -100,7 +99,7 @@ ber_tlv_tag_string(ber_tlv_tag_t tag) {
...
@@ -100,7 +99,7 @@ ber_tlv_tag_string(ber_tlv_tag_t tag) {
}
}
s
s
ize_t
size_t
ber_tlv_tag_serialize
(
ber_tlv_tag_t
tag
,
void
*
bufp
,
size_t
size
)
{
ber_tlv_tag_serialize
(
ber_tlv_tag_t
tag
,
void
*
bufp
,
size_t
size
)
{
int
tclass
=
BER_TAG_CLASS
(
tag
);
int
tclass
=
BER_TAG_CLASS
(
tag
);
ber_tlv_tag_t
tval
=
BER_TAG_VALUE
(
tag
);
ber_tlv_tag_t
tval
=
BER_TAG_VALUE
(
tag
);
...
...
skeletons/ber_tlv_tag.h
View file @
91b29c55
...
@@ -43,10 +43,10 @@ ssize_t ber_fetch_tag(void *bufptr, size_t size, ber_tlv_tag_t *tag_r);
...
@@ -43,10 +43,10 @@ ssize_t ber_fetch_tag(void *bufptr, size_t size, ber_tlv_tag_t *tag_r);
/*
/*
* This function serializes the tag (T from TLV) in BER format.
* This function serializes the tag (T from TLV) in BER format.
* It always return number of bytes necessary to represent the tag,
* It always return
s
number of bytes necessary to represent the tag,
* it is a caller's responsibility to check the return value
* it is a caller's responsibility to check the return value
* against the supplied buffer's size.
* against the supplied buffer's size.
*/
*/
s
s
ize_t
ber_tlv_tag_serialize
(
ber_tlv_tag_t
tag
,
void
*
bufptr
,
size_t
size
);
size_t
ber_tlv_tag_serialize
(
ber_tlv_tag_t
tag
,
void
*
bufptr
,
size_t
size
);
#endif
/* _BER_TLV_TAG_H_ */
#endif
/* _BER_TLV_TAG_H_ */
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