Fix incorrect conversion of getQDTNotBefore

pull/1/head
Timothy Pearson 13 years ago
parent 2ef253fb5a
commit 4194db6598

@ -146,10 +146,10 @@ Java_org_kde_koala_KSSLCertificate_getTQDTNotAfter(JNIEnv* env, jobject obj)
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLCertificate_getTQDTNotBefore(JNIEnv* env, jobject obj)
Java_org_kde_koala_KSSLCertificate_getQDTNotBefore(JNIEnv* env, jobject obj)
{
TQDateTime _qdate;
_qdate = ((KSSLCertificate*) QtSupport::getQt(env, obj))->getTQDTNotBefore();
_qdate = ((KSSLCertificate*) QtSupport::getQt(env, obj))->getQDTNotBefore();
return (jobject) QtSupport::fromTQDateTime(env, (TQDateTime*) &_qdate);
}

@ -15,7 +15,7 @@ extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KSSLCertificate_getSubject (
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KSSLCertificate_getIssuer (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KSSLCertificate_getNotBefore (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KSSLCertificate_getNotAfter (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KSSLCertificate_getTQDTNotBefore (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KSSLCertificate_getQDTNotBefore (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KSSLCertificate_getTQDTNotAfter (JNIEnv *env, jobject);
extern JNIEXPORT jbyteArray JNICALL Java_org_kde_koala_KSSLCertificate_toDer (JNIEnv *env, jobject);
extern JNIEXPORT jbyteArray JNICALL Java_org_kde_koala_KSSLCertificate_toPem (JNIEnv *env, jobject);

@ -95,7 +95,7 @@ public class KSSLCertificate implements QtSupport {
@short Get the date that the certificate becomes valid on.
*/
public native Calendar getTQDTNotBefore();
public native Calendar getQDTNotBefore();
/**
Get the date that the certificate is valid until.
@return the date

Loading…
Cancel
Save