gd_proxyquery

Queries whether a valid proxy certificate exists.

 

Syntax

isvalid = gd_proxyquery

isvalid = gd_proxyquery(proxyattrib,minvalue)

 

Description

This command determines whether a valid proxy certificate exists for user's certificate. The strength or time remaining for the proxy certificate may also be queried. The location of the user's proxy certificate is specified by the cog.properties file.  

 

isvalid = gd_proxyquery where isvalid is 1 if a valid proxy certificate exists at the default location, otherwise 0.

 

isvalid = gd_proxyquery(proxyattrib,minvalue) where isvalid is 1 if the proxy certificate meets the requirements of remaining lifetime or cryptographic strength, otherwise 0. If proxyattrib = 'time' the time remaining for the proxy certificate is queried against minvalue hours. If proxyattrib = 'strength' the cryptographic strength of the proxy certificate is queried against minvalue bits.

   

Example

The following example returns isvalid = 0 for a proxy certificate of strength 512.

 

isvalid = gd_proxyquery('strength',1024)

 

isvalid =

 

     0

 

See also

gd_proxyinfo, gd_certinfo, gd_createproxy, gd_destroyproxy

 



gd_proxyinfo

contents

gd_putfile

Copyright © 2007, The Geodise Project, University of Southampton