/**
* asn1_length_der:
* @len: value to convert.
- * @der: the encoding (may be %NULL).
+ * @der: buffer to hold the returned encoding (may be %NULL).
* @der_len: number of meaningful bytes of ANS (der[0]..der[der_len-1]).
*
* Creates the DER encoding of the provided length value.
* The @der buffer must have enough room for the output. The maximum
* length this function will encode is %ASN1_MAX_LENGTH_SIZE.
- *
+ *
* To know the size of the DER encoding use a %NULL value for @der.
**/
void
* function is like perror(). The only difference is that it accepts
* an error returned by a libtasn1 function.
*
- * This function replaces libtasn1_perror() in older libtasn1.
- *
* Since: 1.6
**/
void
* similar to strerror. The only difference is that it accepts an
* error (number) returned by a libtasn1 function.
*
- * This function replaces libtasn1_strerror() in older libtasn1.
- *
* Returns: Pointer to static zero-terminated string describing error
* code.
*
/***********************************/
extern ASN1_API int
- asn1_parser2tree (const char *file_name,
- asn1_node * definitions, char *errorDescription);
+ asn1_parser2tree (const char *file,
+ asn1_node * definitions, char *error_desc);
extern ASN1_API int
asn1_parser2array (const char *inputFileName,
const char *outputFileName,
- const char *vectorName, char *errorDescription);
+ const char *vectorName, char *error_desc);
extern ASN1_API int
asn1_array2tree (const asn1_static_node * array,
asn1_get_length_ber (const unsigned char *ber, int ber_len, int *len);
extern ASN1_API void
- asn1_length_der (unsigned long int len, unsigned char *ans, int *ans_len);
+ asn1_length_der (unsigned long int len, unsigned char *der, int *der_len);
/* Other utility functions. */
- extern ASN1_API
+ extern ASN1_API
int asn1_decode_simple_der (unsigned int etype, const unsigned char *der, unsigned int der_len,
const unsigned char **str, unsigned int *str_len);