certmngr.cxx (06b3ce53) certmngr.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

--- 67 unchanged lines hidden (view full) ---

76
77 for( ; getchar() != 'q' ; ) {
78 slot = NULL ;
79
80 //Initialize NSPR and NSS
81 PR_Init( PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1 ) ;
82 PK11_SetPasswordFunc( PriPK11PasswordFunc ) ;
83 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

--- 67 unchanged lines hidden (view full) ---

76
77 for( ; getchar() != 'q' ; ) {
78 slot = NULL ;
79
80 //Initialize NSPR and NSS
81 PR_Init( PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1 ) ;
82 PK11_SetPasswordFunc( PriPK11PasswordFunc ) ;
83 if( NSS_Init( argv[1] ) != SECSuccess ) {
84 fprintf( stderr , "### cannot intialize NSS!\n" ) ;
84 fprintf( stderr , "### cannot initialize NSS!\n" ) ;
85 goto done ;
86 }
87
88 certHandle = CERT_GetDefaultCertDB() ;
89 slot = PK11_GetInternalKeySlot() ;
90
91 if( PK11_NeedLogin( slot ) ) {
92 SECStatus nRet = PK11_Authenticate( slot, PR_TRUE, NULL );

--- 93 unchanged lines hidden ---
85 goto done ;
86 }
87
88 certHandle = CERT_GetDefaultCertDB() ;
89 slot = PK11_GetInternalKeySlot() ;
90
91 if( PK11_NeedLogin( slot ) ) {
92 SECStatus nRet = PK11_Authenticate( slot, PR_TRUE, NULL );

--- 93 unchanged lines hidden ---