Article View: alt.privacy.anon-server
Article #64415Re: spgp.dll key import function
From: Anonymous
Date: Fri, 11 Jul 2003 20:15
Date: Fri, 11 Jul 2003 20:15
68 lines
3471 bytes
3471 bytes
-----BEGIN PGP SIGNED MESSAGE-----
On Fri, 11 Jul 2003, Cheshire Admin <admin@cheshire.hopto.org> wrote:
>Thanks to the gentleman who clued me in about the import function of
>spgp.dll, I was able to get it to work, partially.
>
>The problem that I'm having, and I hope somebody here will see what is
>wrong, is that after the function runs and imports a key, the KeyProps
>field is supposed to have the properties of the imported key; however
>it is blank after the function runs, even though the function is
>working.
>
>When it is run by stepping through it, using the Debug function, you
>can see that KeyProps remains null, and KeyPropsLen = 0.
>
>As I say, the function imports the key with no problem. I used the
>description at
>http://www.oz.net/~srheller/spgp/funcref/keyimpexp.html#keyimportfile
>to set up the fields.
>
>Any enlightenment would be appreciated.
>
>Here's the sub that is used:
>
>Private Sub IMPORT_KEY()
>
>Dim KeyProps As String
>Dim KeyPropsLen As Long
>Dim Import As Long
>Dim AllProps As Long
>
>Import = 1
>AllProps = 1
>
> i = spgpKeyImportFile("temp456.txt", _
> KeyProps, _
> KeyPropsLen, _
> Import, _
> AllProps)
>
>End Sub
>
>[temp456.txt is the config email and contains the key to be imported]
Using function calls from inside VB can sometimes be tricky. If a function
doesn't return a "string" as expected, you may need to prepare the variable
a little differently.
Try declaring KeyProps as String*128, creating a fixed length string, and
then intialize it with NULL, chr$(0), as in KeyProps = String(128,
vbNullChar).
Dingo Admin
dingoadmin@dingoremailer.com
-----BEGIN PGP SIGNATURE-----
Version: N/A
iQEVAwUBPw3+AcP4uvjsmaBlAQHjzQf+OwhlAg87MXh0r/3uLsMWpQGXtMfX91DO
KU7ijsmmSowSG8gXVzbn+wd50MznfI/YVN8Jwa3mvB/fJ+rJ+ugQ769ReOkf6y0s
bGWF7DNICp0LwvT3vlVpVrAURkXCvr0UywKuNrQA6xMEFXK1FZONTUmVcEk1XuOa
TwoivlqpkkidsFb35nrbOjdyhVj6VElG1DO4/8irqROzAKc1Tqh76rXE+p5tkwmy
Kqxs/zJvJQdsWKMyy+8xVBRIDlSUohjIeUGmxTRRrMmz6YhR9AstTRxM57GsWouw
u7btayFgGrPM97FHc/rt26LPC+qBps2e6uR54mUudodl1s/rzejM3Q==
=7lr+
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<TTHXW2N737813.6355787037@anonymous.poster>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed1.easynews.com!newsfeed2.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mailReferences:
<ug3ugvchhsl8n2d3eeak0d1galve9gn4o3@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <TTHXW2N737813.6355787037@anonymous.poster> Subject: Re: spgp.dll key import function Date: Fri, 11 Jul 2003 20:15:15 GMT From: Anonymous <Use-Author-Supplied-Address@[127.1]> References: <ug3ugvchhsl8n2d3eeak0d1galve9gn4o3@4ax.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed1.easynews.com!newsfeed2.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mail Newsgroups: alt.privacy.anon-server Organization: Alphabetical X-No-Archive: yes MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Comments: This message probably did not originate at the above address. X-Remailer-Contact: Anonymous Mailer <DingoAdmin@DingoRemailer.com> Content-length: 2214 Lines: 68 X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.