Attempt to handle GEN_IPADD in X509 altnames. Or at least not crash.
Attempt to handle GEN_IPADD in X509 altnames. Or at least not crash.

In particular, stop assuming that every altname is an ASN1_STRING and
using strlen() on what would be its data. If the untested support for
GEN_IPADD actually works, that's an added bonus.

Signed-off-by: David Woodhouse <b460d66aaf00c296a3db1c1d9eeafc081d5f7d70@intel.com>

certik/openconnect,atyndall/openconnect,sihde/openconnect,pbrook/openconnect,pbrook/openconnect,ldx/android_external_openconnect,atyndall/openconnect,don-johnny/openconnect,chadcatlett/openconnect,don-johnny/openconnect,certik/openconnect,brandt/openconnect,chadcatlett/openconnect,liiir1985/openconnect,mveplus/openconnect-client,neshema/openconnect,liiir1985/openconnect,mveplus/openconnect-client,matlockx/openconnect,neshema/openconnect,sihde/openconnect,ldx/android_external_openconnect,mtmiller/openconnect,mtmiller/openconnect,atyndall/openconnect,matlockx/openconnect,don-johnny/openconnect,mveplus/openconnect-client,lins05/openconnect,brandt/openconnect,mtmiller/openconnect,mdutton3/OpenConnect,mdutton3/OpenConnect,chadcatlett/openconnect,nmav/openconnect-mine,lins05/openconnect,don-johnny/openconnect,matlockx/openconnect,brandt/openconnect,certik/openconnect,brandt/openconnect,neshema/openconnect,matlockx/openconnect,cernekee/openconnect,nmav/openconnect-mine,cernekee/openconnect,liiir1985/openconnect,cernekee/openconnect,mveplus/openconnect-client,atyndall/openconnect,nmav/openconnect-mine,sihde/openconnect,neshema/openconnect,chadcatlett/openconnect,liiir1985/openconnect,lins05/openconnect,lins05/openconnect,mtmiller/openconnect,mdutton3/OpenConnect,nmav/openconnect-mine,cernekee/openconnect