+2004-06-10 Ken Raeburn <raeburn@mit.edu>
+
+ * asn1_encode.c (asn1_encode_generaltime): Fix memcpy argument to
+ actually be a pointer.
+ (asn1_encode_enumerated): Drop "const" from scalar argument type.
+ * asn1_encode.h (asn1_encode_integer, asn1_encode_enumerated,
+ asn1_encode_unsigned_integer, asn1_encode_octetstring,
+ asn1_encode_charstring, asn1_encode_printablestring,
+ asn1_encode_ia5string, asn1_encode_generaltime,
+ asn1_encode_generalstring): Drop "const" from scalar argument
+ types.
+
2004-06-04 Ken Raeburn <raeburn@mit.edu>
* asn1_encode.c (asn1_encode_generaltime): Use gmtime_r if
*/
asn1_error_code asn1_encode_integer
- (asn1buf *buf, const long val, unsigned int *retlen);
+ (asn1buf *buf, long val, unsigned int *retlen);
/* requires *buf is allocated
modifies *buf, *retlen
effects Inserts the encoding of val into *buf and returns
to expand the buffer. */
asn1_error_code asn1_encode_enumerated
-(asn1buf *buf, const long val, unsigned int *retlen);
+(asn1buf *buf, long val, unsigned int *retlen);
asn1_error_code asn1_encode_unsigned_integer
- (asn1buf *buf, const unsigned long val,
+ (asn1buf *buf, unsigned long val,
unsigned int *retlen);
/* requires *buf is allocated
modifies *buf, *retlen
asn1_error_code asn1_encode_octetstring
(asn1buf *buf,
- const unsigned int len, const asn1_octet *val,
+ unsigned int len, const asn1_octet *val,
unsigned int *retlen);
/* requires *buf is allocated
modifies *buf, *retlen
asn1_error_code asn1_encode_oid
(asn1buf *buf,
- const unsigned int len, const asn1_octet *val,
+ unsigned int len, const asn1_octet *val,
unsigned int *retlen);
/* requires *buf is allocated
modifies *buf, *retlen
asn1_error_code asn1_encode_charstring
(asn1buf *buf,
- const unsigned int len, const char *val,
+ unsigned int len, const char *val,
unsigned int *retlen);
/* requires *buf is allocated
modifies *buf, *retlen
asn1_error_code asn1_encode_printablestring
(asn1buf *buf,
- const unsigned int len, const char *val,
+ unsigned int len, const char *val,
int *retlen);
/* requires *buf is allocated
modifies *buf, *retlen
asn1_error_code asn1_encode_ia5string
(asn1buf *buf,
- const unsigned int len, const char *val,
+ unsigned int len, const char *val,
int *retlen);
/* requires *buf is allocated
modifies *buf, *retlen
to expand the buffer. */
asn1_error_code asn1_encode_generaltime
- (asn1buf *buf, const time_t val, unsigned int *retlen);
+ (asn1buf *buf, time_t val, unsigned int *retlen);
/* requires *buf is allocated
modifies *buf, *retlen
effects Inserts the encoding of val into *buf and returns
asn1_error_code asn1_encode_generalstring
(asn1buf *buf,
- const unsigned int len, const char *val,
+ unsigned int len, const char *val,
unsigned int *retlen);
/* requires *buf is allocated, val has a length of len characters
modifies *buf, *retlen