Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F26446469
ber-help.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
2 KB
Subscribers
None
ber-help.h
View Options
/* ber-help.h - Basic Encoding Rules helpers
* Copyright (C) 2001 g10 Code GmbH
*
* This file is part of KSBA.
*
* KSBA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* KSBA is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifndef BER_HELP_H
#define BER_HELP_H 1
struct
tag_info
{
enum
tag_class
class
;
int
is_constructed
;
unsigned
long
tag
;
unsigned
long
length
;
/* length part of the TLV */
int
ndef
;
/* It is an indefinite length */
size_t
nhdr
;
/* number of bytes in the TL */
unsigned
char
buf
[
10
];
/* buffer for the TL */
const
char
*
err_string
;
int
non_der
;
};
gpg_error_t
_ksba_ber_read_tl
(
ksba_reader_t
reader
,
struct
tag_info
*
ti
);
gpg_error_t
_ksba_ber_parse_tl
(
unsigned
char
const
**
buffer
,
size_t
*
size
,
struct
tag_info
*
ti
);
gpg_error_t
_ksba_ber_write_tl
(
ksba_writer_t
writer
,
unsigned
long
tag
,
enum
tag_class
class
,
int
constructed
,
unsigned
long
length
);
size_t
_ksba_ber_encode_tl
(
unsigned
char
*
buffer
,
unsigned
long
tag
,
enum
tag_class
class
,
int
constructed
,
unsigned
long
length
);
size_t
_ksba_ber_count_tl
(
unsigned
long
tag
,
enum
tag_class
class
,
int
constructed
,
unsigned
long
length
);
#endif
/*BER_HELP_H*/
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Jul 17, 1:10 AM (1 d, 14 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4f/d1/e762aea8d1df1088532a19361104
Attached To
rK libksba
Event Timeline
Log In to Comment