🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #64377

spgp.dll key import function

#64377
From: Cheshire Admin
Date: Fri, 11 Jul 2003 19:21
40 lines
2171 bytes
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]
Technical Details
Message-ID: <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!border1.nntp.aus1.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <ug3ugvchhsl8n2d3eeak0d1galve9gn4o3@4ax.com>
Subject: spgp.dll key import function
Date: Fri, 11 Jul 2003 15:21:06 -0400
From: Cheshire Admin <admin@cheshire.hopto.org>
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!border1.nntp.aus1.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Posted via Supernews, http://www.supernews.com
X-Newsreader: Forte Agent 1.92/32.572
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@supernews.com
Lines: 40