Fixed some typos and inconsistencies.
authorrepka%netscape.com
Thu, 06 Apr 2000 00:42:49 +0000
changeset 231 b7703d46da4aeeba6e35e7bb9a168cfdeb161142
parent 230 d3006d31dd911e77da468221c9771a41b161a4eb
child 232 9397bd27c23dffd6c9f4b4a4e1f0f948e83b4a43
push idunknown
push userunknown
push dateunknown
Fixed some typos and inconsistencies.
security/nss/lib/util/nssb64.h
--- a/security/nss/lib/util/nssb64.h
+++ b/security/nss/lib/util/nssb64.h
@@ -84,41 +84,41 @@ NSSBase64Encoder_Destroy (NSSBase64Encod
 
 /*
  * Perform base64 decoding from an ascii string "inStr" to an Item.
  * The length of the input must be provided as "inLen".  The Item
  * may be provided (as "outItemOpt"); you can also pass in a NULL
  * and the Item will be allocated for you.
  *
  * In any case, the data within the Item will be allocated for you.
- * All allocation will happen out the passed-in "arenaOpt", if non-NULL.
+ * All allocation will happen out of the passed-in "arenaOpt", if non-NULL.
  * If "arenaOpt" is NULL, standard allocation (heap) will be used and
  * you will want to free the result via SECITEM_FreeItem.
  *
  * Return value is NULL on error, the Item (allocated or provided) otherwise.
  */
 extern SECItem *
 NSSBase64_DecodeBuffer (PRArenaPool *arenaOpt, SECItem *outItemOpt,
 			const char *inStr, unsigned int inLen);
 
 /*
- * Perform base64 decoding of binary data "inItem" to an ascii string.
+ * Perform base64 encoding of binary data "inItem" to an ascii string.
  * The output buffer may be provided (as "outStrOpt"); you can also pass
  * in a NULL and the buffer will be allocated for you.  The result will
  * be null-terminated, and if the buffer is provided, "maxOutLen" must
  * specify the maximum length of the buffer and will be checked to
  * supply sufficient space space for the encoded result.  (If "outStrOpt"
  * is NULL, "maxOutLen" is ignored.)
  *
- * If "outStrOpt" is NULL, allocation will happen out the passed-in
+ * If "outStrOpt" is NULL, allocation will happen out of the passed-in
  * "arenaOpt", if *it* is non-NULL, otherwise standard allocation (heap)
  * will be used.
  *
  * Return value is NULL on error, the output buffer (allocated or provided)
  * otherwise.
  */
 extern char *
 NSSBase64_EncodeItem (PRArenaPool *arenaOpt, char *outStrOpt,
-		      unsigned int maxOutLen, SECItem *binaryItem);
+		      unsigned int maxOutLen, SECItem *inItem);
 
 SEC_END_PROTOS
 
 #endif /* _NSSB64_H_ */