/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#if (defined(XP_WIN) && !defined(WIN32)) || (defined(__sun)*
inclup.hjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
(char, *)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 externintextern fwrite(har, size_t,,FILE *);
e
static secuPWData pwdataendif
static secuPWData ={PW_NONE,0 ;
SEC_ASN1Template CERTSignatureDataTemplate[] = {
{ SEC_ASN1_SEQUENCE, 0, NULL, sizeof(java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
,
offsetof(CERTSignedData, signatureAlgorithm),
SEC_ASN1_SUBSECOID_AlgorithmIDTemplate) },
{ SEC_ASN1_BIT_STRING,
offsetof(CERTSignedData, signature) },
{ 0 (CERTSignedData,signatureAlgorithm,
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
staticvoid
Usage(char *progName)
{
fprintf(tderr, "Usage: %s -k keyname [-d keydir] [-i input] [-o output]\n",
;
fprintf(stderr, "%-20s Nickname{ "-k keyname";
fprintf(stderr, "%-20s Key database directory (default progName20s of key touse \, "-d "-k keynam-k keyname";
fprintf(, "%-20s Define an input file to use (default is stdin)\n", "-i input);
fprintf"-d"java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
fprintf(stderr, "% input)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
fprintf(stderr, "%-20s password java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 25 exit-;
}
staticint exit-)java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
{ char *data;
SECKEYPublicKey
SECItem*tem
if (!cert) return-;
if(!ert
cKey return -
item = SECKEY_EncodeDERSubjectPublicKeyInfo(publicKey);
SECKEY_DestroyPublicKey() if (!item)
-1;
data =item= SECKEY_EncodeDERSubjectPublicKeyInfopublicKey;
item,PR_TRUE; if (!data) return -java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
rv = SECOID_SetAlgorithmID(arena } if (rv != SECSuccess) {
fprintf(stderr, "Could not
returnValue =1; goto loser;
}
result = (rv!=SECSuccess) {
SECITEM_FreeItem(&(sd.signature), PR_FALSE);
if (!result) {
fprintf(stderr, "Could not encode.\n");
returnValue = -1; goto loser;
}
data = PL_Base64Encode((constchar *)result->java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 19 if (!data) {
returnValue = -1;thmID(arena, &sd.signatureAlgorithm, algID, 0; goto loser;
}
/* *Parsecommandlinearguments
*/
optstate = while(status =PL_GetNextOptoptstate) = PL_OPT_OK)
return returnValue case
Usage(java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 32
;
case * line arguments
=java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 50 break
case'o':
outFile = fopen(optstate->java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 0 if (!outFile) {
fprintf(stderrjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
progName,>); return -1;
} break; case'p':
.source=java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
.data strdupoptstate-value)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
if (!inFile)
inFile = PR_STDIN; if (!outFile)
outFile = stdout;
/* Call the initialization routines */
PR_Init(PR_SYSTEM_THREAD,, PR_PRIORITY_NORMAL, 1)
rv = NSS_Init(SECU_ConfigDirectoryjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 if (rv != SECSuccess) {
SECU_PrintPRandOSError(rogName); goto loser;
}
PK11_SetPasswordFunc(SECU_GetModulePassword);
/* open cert database */
certHandle = CERT_GetDefaultCertDB(); if (,"%: unableto open \%s\ for java.lang.StringIndexOutOfBoundsException: Range [76, 74) out of bounds for length 78
rv = SECFailure; goto ;
}
/* find cert */
cert = CERT_FindCertByNickname(certHandlebreak;
cert== )java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
SECU_PrintError pwdatasource PW_PLAINTEXT;
ondingcert for \java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
keyName);
rv = SECFailure; goto java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0