Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 2 Jahren, 6 Monaten
Letzter Beitrag:
vor 2 Jahren, 4 Monaten
Beteiligte Autoren:
André Labuschagné, Ola

CertificateLoad Function

Startbeitrag von André Labuschagné am 25.11.2015 13:48

Hi All

I am wanting to load multiple certificates into an array of certificates. There is no example of this, only to load one certificate. I think it may be in the declaration and priming of the array. So how do I declare an array to be of a certain size and that the slots are available to insert data into them?

Cheers
Andre

Antworten:

Hi All

Sorted and works like a charm.

Cheers
Andre

von André Labuschagné - am 26.11.2015 11:37
Hi André,

I am now struggling with the same problem.
What is the trick?

Best regards
Ola

von Ola - am 14.02.2016 11:57
Hi Ola

Do something like this:

// 1
APIKey = "firstapp"
sCertificateToLoad = "firstapp.p12"
arrMyCertif = CertificateLoad(sCertificateToLoad,APIKey)
gMyCertificate = arrMyCertif[1]
garrFiledarrCertificates[1] = gMyCertificate

// 2
APIKey = "secondapp"
sCertificateToLoad = "secondapp.p12"
arrMyCertif = CertificateLoad(sCertificateToLoad,APIKey)
gMyCertificate = arrMyCertif[1]
garrFiledarrCertificates[2] = gMyCertificate

This works but you cannot address these elements as on the third address I get runtime elements - so I am in the process of creating a separate service for each app. If you can get it to work I would be grateful if you can tell me what the trick is. First pass works for me. Second may work but the third reference to the array element bang - it blows up.

Note - the loading is fine - it is when you point to the certificate in the array that it crashes - this you have to do when passing the notifications to the Apple store.

Cheers
Andre

von André Labuschagné - am 15.02.2016 01:40
Hi André,

Thank you.
My experience is the same: First certificate works, but the second or third cause errors.
Also, when loading the second or third certificate, I may get error that there is no first certificate...

Maybe there should be a special command to add a certificate to the array? This is the case with some other array types in Wx.

Or maybe we should just declare a separate certificatearray for each certificate?

Best regards
Ola

von Ola - am 15.02.2016 07:44
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.