Declare the 'input' argument to CERT_DecodeTimeChoice as 'const'. Removed

an extraneous semicolon (;) after the SEC_ASN1_CHOOSER_IMPLEMENT macro.
Modified Files: secder.h sectime.c
This commit is contained in:
wchang0222%aol.com 2003-12-22 23:33:39 +00:00
Родитель 9c830545ca
Коммит 770fccd41b
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -38,7 +38,7 @@
* secder.h - public data structures and prototypes for the DER encoding and
* decoding utilities library
*
* $Id: secder.h,v 1.4 2003-12-05 04:53:28 nelsonb%netscape.com Exp $
* $Id: secder.h,v 1.5 2003-12-22 23:33:39 wchang0222%aol.com Exp $
*/
#if defined(_WIN32_WCE)
@ -206,7 +206,7 @@ extern char *CERT_GenTime2FormattedAscii (int64 genTime, char *format);
** or a SEC_ASN1_UTC_TIME
*/
extern SECStatus CERT_DecodeTimeChoice(PRTime* output, SECItem* input);
extern SECStatus CERT_DecodeTimeChoice(PRTime* output, const SECItem* input);
/* encode a PRTime to an ASN.1 DER SECItem containing either a
SEC_ASN1_GENERALIZED_TIME or a SEC_ASN1_UTC_TIME */

Просмотреть файл

@ -45,7 +45,7 @@ const SEC_ASN1Template CERT_TimeChoiceTemplate[] = {
{ 0 }
};
SEC_ASN1_CHOOSER_IMPLEMENT(CERT_TimeChoiceTemplate);
SEC_ASN1_CHOOSER_IMPLEMENT(CERT_TimeChoiceTemplate)
const SEC_ASN1Template CERT_ValidityTemplate[] = {
{ SEC_ASN1_SEQUENCE,
@ -228,7 +228,7 @@ DecodeGeneralizedTime2FormattedAscii (SECItem *generalizedTimeDER, char *format
/* decode a SECItem containing either a SEC_ASN1_GENERALIZED_TIME
or a SEC_ASN1_UTC_TIME */
SECStatus CERT_DecodeTimeChoice(PRTime* output, SECItem* input)
SECStatus CERT_DecodeTimeChoice(PRTime* output, const SECItem* input)
{
switch (input->type) {
case siGeneralizedTime: