Changes to compile on WIN32 platform

This commit is contained in:
chris2511 2003-04-24 22:26:17 +00:00
parent 1d345e465f
commit 7a0aa8818c
4 changed files with 1438 additions and 1254 deletions

View File

@ -463,7 +463,12 @@ void MainWindow::newPath(QString str)
bool MainWindow::mkDir(QString dir)
{
#ifdef WIN32
int ret = mkdir(dir.latin1());
// in direct.h declare _CRTIMP int __cdecl mkdir(const char *);
#else
int ret = mkdir(dir.latin1(), S_IRUSR | S_IWUSR | S_IXUSR);
#endif
if (ret) {
QString desc = " (";
desc += strerror(ret);
@ -473,5 +478,6 @@ bool MainWindow::mkDir(QString dir)
return false;
}
return true;
}

View File

@ -103,10 +103,13 @@
#include "lib/db_temp.h"
#include "lib/db_crl.h"
#include <sys/types.h>
#include <sys/stat.h>
#ifndef WIN32
#include <unistd.h>
#endif
#include <sys/stat.h>
#ifdef WIN32
#include <direct.h> // to define mkdir function
#else
#include <unistd.h>
#endif
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

View File

@ -168,17 +168,8 @@ void NewX509::setRequest()
changeDefault->setEnabled(false);
changeDefault->setChecked(false);
signerBox->setEnabled(false);
startText=tr("\
Welcome to the settings for certificate signing requests.
A signing request needs a private key, so it will be created \
if there isn't any unused key available in the key database. \
This signing request can then be given to a Certification authority \
while the private key of the request and of the resulting certificate \
returned from the CA does never leave your computer.");
endText=tr("\
You are done with entering all parameters for generating a Certificate signing \
request. The resulting request should be exported and send to an appropriate CA \
for signing it.");
startText=tr("Welcome to the settings for certificate signing requests. A signing request needs a private key, so it will be created if there isn't any unused key available in the key database. This signing request can then be given to a Certification authority while the private key of the request and of the resulting certificate returned from the CA does never leave your computer.");
endText=tr("You are done with entering all parameters for generating a Certificate signing request. The resulting request should be exported and send to an appropriate CA for signing it.");
tText=tr("Certificate request");
setup();
}
@ -192,16 +183,8 @@ void NewX509::setTemp(pki_temp *temp)
{
setAppropriate(page1, false);
finishButton()->setEnabled(true);
startText=tr("\
Welcome to the settings for Templates.
This templates do not refer to any ASN.1 structure but are used to keep default \
settings for signing requests and certificates. \
When creating a Request or Certificate the template can preset the needed fields \
with default settings.");
endText=tr("\
You are done with entering all parameters for the Template.
After this step the template can be assigned to one of your CAs to be autoatically \
applied when signing with this CA.");
startText=tr("Welcome to the settings for Templates. This templates do not refer to any ASN.1 structure but are used to keep default settings for signing requests and certificates. When creating a Request or Certificate the template can preset the needed fields with default settings.");
endText=tr("You are done with entering all parameters for the Template. After this step the template can be assigned to one of your CAs to be autoatically applied when signing with this CA.");
tText=tr("Template");
if (temp->getDescription() != "--") {
description->setText(temp->getDescription().c_str());
@ -214,17 +197,8 @@ applied when signing with this CA.");
void NewX509::setCert()
{
finishButton()->setEnabled(true);
startText=tr("\
Welcome to the settings for Certificates.
The information for the new Certificate can either be grabbed from a \
given Certificate-request or be filled in by hand. \
In the case of not signing a request there needs to be at least one unused key. \
If this is not the case it will be created.
If you want to self-sign a request (unusual but nevertheless possible) you need \
the private key used to create the request.");
endText=tr("\
You are done with entering all parameters for creating a Certificate.
");
startText=tr("Welcome to the settings for Certificates. The information for the new Certificate can either be grabbed from a given Certificate-request or be filled in by hand. In the case of not signing a request there needs to be at least one unused key. If this is not the case it will be created. If you want to self-sign a request (unusual but nevertheless possible) you need the private key used to create the request.");
endText=tr("You are done with entering all parameters for creating a Certificate.");
tText=tr("Certificate");
setup();
}

2637
xca.dsp

File diff suppressed because it is too large Load Diff