~nutznboltz-deactivatedaccount/ubuntu/precise/gnutls26/fix-lp926350

« back to all changes in this revision

Viewing changes to lib/minitasn1/element.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
Tags: 2.12.11-1
* 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:
264
264
 *           result=asn1_write_value(cert,
265
265
 *           "tbsCertificate.subject.rdnSequence.?LAST", "NEW", 1);
266
266
 *
267
 
 * Returns: %ASN1_SUCCESS if the value was set,
268
 
 *   %ASN1_ELEMENT_NOT_FOUND if @name is not a valid element, and
269
 
 *   %ASN1_VALUE_NOT_VALID if @ivalue has a wrong format.
 
267
 * Returns:
 
268
 *
 
269
 *   %ASN1_SUCCESS: Set value OK.
 
270
 *
 
271
 *   %ASN1_ELEMENT_NOT_FOUND: NAME is not a valid element.
 
272
 *
 
273
 *   %ASN1_VALUE_NOT_VALID: VALUE has a wrong format.
270
274
 **/
271
275
asn1_retCode
272
276
asn1_write_value (ASN1_TYPE node_root, const char *name,
693
697
 * ANY: If NAME indicates an any type, VALUE will indicate the DER
694
698
 *   encoding of the structure actually used.
695
699
 *
696
 
 * Returns: %ASN1_SUCCESS if value is returned,
697
 
 *   %ASN1_ELEMENT_NOT_FOUND if @name is not a valid element,
698
 
 *   %ASN1_VALUE_NOT_FOUND if there isn't any value for the element
699
 
 *   selected, and %ASN1_MEM_ERROR if The value vector isn't big enough
700
 
 *   to store the result, and in this case @len will contain the number of
701
 
 *   bytes needed.
 
700
 * Returns:
 
701
 *
 
702
 *   %ASN1_SUCCESS: Set value OK.
 
703
 *
 
704
 *   %ASN1_ELEMENT_NOT_FOUND: NAME is not a valid element.
 
705
 *
 
706
 *   %ASN1_VALUE_NOT_FOUND: There isn't any value for the element selected.
 
707
 *
 
708
 *   %ASN1_MEM_ERROR: The value vector isn't big enough to store the result.
 
709
 *   In this case LEN will contain the number of bytes needed.
702
710
 **/
703
711
asn1_retCode
704
712
asn1_read_value (ASN1_TYPE root, const char *name, void *ivalue, int *len)
875
883
 * %ASN1_CLASS_UNIVERSAL, %ASN1_CLASS_PRIVATE or
876
884
 * %ASN1_CLASS_CONTEXT_SPECIFIC.
877
885
 *
878
 
 * Returns: %ASN1_SUCCESS if successful, %ASN1_ELEMENT_NOT_FOUND if
879
 
 *   @name is not a valid element.
 
886
 * Returns:
 
887
 *
 
888
 *   %ASN1_SUCCESS: Set value OK.
 
889
 *
 
890
 *   %ASN1_ELEMENT_NOT_FOUND: NAME is not a valid element.
880
891
 **/
881
892
asn1_retCode
882
893
asn1_read_tag (ASN1_TYPE root, const char *name, int *tagValue,
975
986
        }
976
987
    }
977
988
 
 
989
 
978
990
  return ASN1_SUCCESS;
 
991
 
979
992
}