asn1_lib.c: ASN1_put_object: Remove comment about "class 0".
authorScott McPeak <scott.g.mcpeak@gmail.com>
Fri, 23 Apr 2021 02:13:09 +0000 (19:13 -0700)
committerDmitry Belyavskiy <beldmit@gmail.com>
Thu, 29 Apr 2021 11:53:19 +0000 (13:53 +0200)
ASN1_put_object() was preceded by the nonsensical comment:

  /*
   * class 0 is constructed constructed == 2 for indefinite length constructed
   */

This is the result of concatenating two sentences in 0f113f3ee4d by
automated reformatting.  The first sentence, "class 0 is constructed",
goes back to d02b48c63a, the import of SSLeay 0.8.1b.  Even in that
context, it made little sense; class 0 means "universal", not
constructed, and there is no special significance to class 0 in this
function in any case.

Therefore I have simply removed that first sentence.

CLA: trivial

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/14998)

crypto/asn1/asn1_lib.c

index 72d15acc7ef215eca291858b20728f9d98c1c953..b1fa6b55a05921af103f49536050593440b6ded1 100644 (file)
@@ -155,7 +155,7 @@ static int asn1_get_length(const unsigned char **pp, int *inf, long *rl,
 }
 
 /*
- * class 0 is constructed constructed == 2 for indefinite length constructed
+ * constructed == 2 for indefinite length constructed
  */
 void ASN1_put_object(unsigned char **pp, int constructed, int length, int tag,
                      int xclass)