PemToString (Stringlist function): Difference between revisions
m (→Syntax terms) |
m (→Examples) |
||
Line 17: | Line 17: | ||
==Usage notes== | ==Usage notes== | ||
==Examples== | ==Examples== | ||
The following request loads <var>Longstring</var> <code>%ls</code> with the contents of the base-64 encoded CRL contained in <var>Stringlist</var> <code>%sl</code>:<p class="code"> b | |||
%ls is longstring | |||
%sl is object stringlist | |||
text to %sl = new raw | |||
-----BEGIN X509 CRL----- | |||
MIIBODCB4zANBgkqhkiG9w0BAQQFADBgMQswCQYDVQQGEwJBVTEMMAoGA1UECBMD | |||
UUxEMRkwFwYDVQQKExBNaW5jb20gUHR5LiBMdGQuMQswCQYDVQQLEwJDUzEbMBkG | |||
A1UEAxMSU1NMZWF5IGRlbW8gc2VydmVyFw0wMTAxMTUxNjI2NTdaFw0wMTAyMTQx | |||
NjI2NTdaMFIwEgIBARcNOTUxMDA5MjMzMjA1WjASAgEDFw05NTEyMDEwMTAwMDBa | |||
MBMCAhI0Fw0wMTAxMTUxNjE5NDdaMBMCAhI1Fw0wMTAxMTUxNjIzNDZaMA0GCSqG | |||
SIb3DQEBBAUAA0EAHPjQ3M93QOj8Ufi+jZM7Y78TfAzG4jJn/E6MYBPFVQFYo/Gp | |||
UZexfjSVo5CIyySOtYscz8oO7avwBxTiMpDEQg== | |||
-----END X509 CRL----- | |||
end text | |||
%ls = %sl:pemToString('X509 CRL') | |||
end | |||
</p> | |||
==See also== | ==See also== | ||
{{Template:Stringlist:PemToString footer}} | {{Template:Stringlist:PemToString footer}} |
Revision as of 22:24, 3 April 2012
Extract base64 encoded PEM data to string (Stringlist class)
[Introduced in Sirius Mods 8.0]
This page is under construction.
Syntax
%string = sl:PemToString( label, [Occurrence= number]) Throws InvalidPemData
Syntax terms
%string | string |
---|---|
sl | Stringlist object |
label | string |
Occurrence | The occurrence number of the requested tag. |
Usage notes
Examples
The following request loads Longstring %ls
with the contents of the base-64 encoded CRL contained in Stringlist %sl
:
b %ls is longstring %sl is object stringlist text to %sl = new raw -----BEGIN X509 CRL----- MIIBODCB4zANBgkqhkiG9w0BAQQFADBgMQswCQYDVQQGEwJBVTEMMAoGA1UECBMD UUxEMRkwFwYDVQQKExBNaW5jb20gUHR5LiBMdGQuMQswCQYDVQQLEwJDUzEbMBkG A1UEAxMSU1NMZWF5IGRlbW8gc2VydmVyFw0wMTAxMTUxNjI2NTdaFw0wMTAyMTQx NjI2NTdaMFIwEgIBARcNOTUxMDA5MjMzMjA1WjASAgEDFw05NTEyMDEwMTAwMDBa MBMCAhI0Fw0wMTAxMTUxNjE5NDdaMBMCAhI1Fw0wMTAxMTUxNjIzNDZaMA0GCSqG SIb3DQEBBAUAA0EAHPjQ3M93QOj8Ufi+jZM7Y78TfAzG4jJn/E6MYBPFVQFYo/Gp UZexfjSVo5CIyySOtYscz8oO7avwBxTiMpDEQg== -----END X509 CRL----- end text %ls = %sl:pemToString('X509 CRL') end