signer.cxx (06b3ce53) | signer.cxx (509df7cb) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 98 unchanged lines hidden (view full) --- 107 xmlIndentTreeOutput = 1; 108 #endif // XMLSEC_NO_XSLT 109 110 111 //Initialize NSPR and NSS 112 PR_Init( PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1 ) ; 113 PK11_SetPasswordFunc( PriPK11PasswordFunc ) ; 114 if( NSS_Init( argv[1] ) != SECSuccess ) { | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 98 unchanged lines hidden (view full) --- 107 xmlIndentTreeOutput = 1; 108 #endif // XMLSEC_NO_XSLT 109 110 111 //Initialize NSPR and NSS 112 PR_Init( PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1 ) ; 113 PK11_SetPasswordFunc( PriPK11PasswordFunc ) ; 114 if( NSS_Init( argv[1] ) != SECSuccess ) { |
115 fprintf( stderr , "### cannot intialize NSS!\n" ) ; | 115 fprintf( stderr , "### cannot initialize NSS!\n" ) ; |
116 goto done ; 117 } 118 119 certHandle = CERT_GetDefaultCertDB() ; 120 slot = PK11_GetInternalKeySlot() ; 121 122 if( PK11_NeedLogin( slot ) ) { 123 SECStatus nRet = PK11_Authenticate( slot, PR_TRUE, NULL ); --- 243 unchanged lines hidden --- | 116 goto done ; 117 } 118 119 certHandle = CERT_GetDefaultCertDB() ; 120 slot = PK11_GetInternalKeySlot() ; 121 122 if( PK11_NeedLogin( slot ) ) { 123 SECStatus nRet = PK11_Authenticate( slot, PR_TRUE, NULL ); --- 243 unchanged lines hidden --- |