certmanager/lib

cryptplugwrapperlist.cpp
1 /*
2  CRYPTPLUG - an independent cryptography plug-in
3  API. CryptPlugWrapperList holds any number of crypto plug-ins.
4 
5  Copyright (C) 2001 by Klarälvdalens Datakonsult AB
6 
7  CRYPTPLUG is free software; you can redistribute it and/or modify
8  it under the terms of GNU General Public License as published by
9  the Free Software Foundation; version 2 of the License.
10 
11  CRYPTPLUG is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20 
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
24 
25 #include "cryptplugwrapperlist.h"
26 
27 CryptPlugWrapper * CryptPlugWrapperList::findForLibName( const TQString & libName ) const
28 {
29  for ( TQPtrListIterator<CryptPlugWrapper> it( *this ) ; it.current() ; ++it )
30  if ( (*it)->libName().find( libName, 0, false ) >= 0 )
31  return *it;
32  return 0;
33 }
This class provides C++ access to the CRYPTPLUG API.