Beispiel #1
0
bool KSSLD::caAddFromFile(TQString filename, bool ssl, bool email, bool code) {

	TQStringList certificates;
	certificates = caReadCerticatesFromFile(filename);
	if (certificates.isEmpty())
		return false;

	bool ok = true;

	for (TQStringList::Iterator it = certificates.begin();
					it != certificates.end(); ++it ) {
		ok &= caAdd(*it, ssl, email, code);
	}

	return ok;
}
Record *medmAllocateRecord(char *name, void (*updateValueCb)(XtPointer),
  void (*updateGraphicalInfoCb)(XtPointer), XtPointer clientData)
{
    Record *pR;

  /* Don't allocate a record if the name is blank */
    if(strlen(name) <= (size_t)0) {
	return NULL;
    }

    pR = (Record *)malloc(sizeof(Record));
    if(pR) {
	*pR = nullRecord;
	pR->caId = caAdd(name,pR);
	pR->updateValueCb = updateValueCb;
	pR->updateGraphicalInfoCb = updateGraphicalInfoCb;
	pR->clientData = clientData;
    }
    return pR;
}