encrypter.cxx (06b3ce53) | encrypter.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 --- 87 unchanged lines hidden (view full) --- 96 #ifndef XMLSEC_NO_XSLT 97 xmlIndentTreeOutput = 1; 98 #endif // XMLSEC_NO_XSLT 99 100 //Initialize NSPR and NSS 101 PR_Init( PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1 ) ; 102 PK11_SetPasswordFunc( PriPK11PasswordFunc ) ; 103 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 --- 87 unchanged lines hidden (view full) --- 96 #ifndef XMLSEC_NO_XSLT 97 xmlIndentTreeOutput = 1; 98 #endif // XMLSEC_NO_XSLT 99 100 //Initialize NSPR and NSS 101 PR_Init( PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1 ) ; 102 PK11_SetPasswordFunc( PriPK11PasswordFunc ) ; 103 if( NSS_Init( argv[1] ) != SECSuccess ) { |
104 fprintf( stderr , "### cannot intialize NSS!\n" ) ; | 104 fprintf( stderr , "### cannot initialize NSS!\n" ) ; |
105 goto done ; 106 } 107 108 certHandle = CERT_GetDefaultCertDB() ; 109 slot = PK11_GetInternalKeySlot() ; 110 111 symKey = PK11_KeyGen( slot , CKM_DES3_CBC, NULL, 128, NULL ) ; 112 if( symKey == NULL ) { --- 193 unchanged lines hidden --- | 105 goto done ; 106 } 107 108 certHandle = CERT_GetDefaultCertDB() ; 109 slot = PK11_GetInternalKeySlot() ; 110 111 symKey = PK11_KeyGen( slot , CKM_DES3_CBC, NULL, 128, NULL ) ; 112 if( symKey == NULL ) { --- 193 unchanged lines hidden --- |