~ubuntu-branches/ubuntu/trusty/gnutls26/trusty

« back to all changes in this revision

Viewing changes to lib/minitasn1/coding.c

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-10-01 15:28:13 UTC
  • mfrom: (12.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20111001152813-yygm1c4cxonfxhzy
* New upstream version.
  + Allow CA importing of 0 certificates to succeed. Closes: #640639
* Add libp11-kit-dev to libgnutls-dev dependencies. (see #643811)
* [20_guiledocstring.diff] guile: Fix docstring extraction with CPP 4.5+.

Show diffs side-by-side

added added

removed removed

Lines of Context:
857
857
 * Creates the DER encoding for the NAME structure (inside *POINTER
858
858
 * structure).
859
859
 *
860
 
 * Returns: %ASN1_SUCCESS if DER encoding OK, %ASN1_ELEMENT_NOT_FOUND
861
 
 *   if @name is not a valid element, %ASN1_VALUE_NOT_FOUND if there
862
 
 *   is an element without a value, %ASN1_MEM_ERROR if the @ider
863
 
 *   vector isn't big enough and in this case @len will contain the
864
 
 *   length needed.
 
860
 * Returns:
 
861
 *
 
862
 *   %ASN1_SUCCESS: DER encoding OK.
 
863
 *
 
864
 *   %ASN1_ELEMENT_NOT_FOUND: NAME is not a valid element.
 
865
 *
 
866
 *   %ASN1_VALUE_NOT_FOUND: There is an element without a value.
 
867
 *
 
868
 *   %ASN1_MEM_ERROR: @ider vector isn't big enough. Also in this case
 
869
 *     LEN will contain the length needed.
865
870
 **/
866
871
asn1_retCode
867
872
asn1_der_coding (ASN1_TYPE element, const char *name, void *ider, int *len,