Project

General

Profile

« Previous | Next » 

Revision 1e0544a6

Added by Ermal LUÇI over 10 years ago

Fix the generation of certificates for rsa type. strpos returns the pos as 0 for rsasig but it php considers that as false anyhow

View differences:

etc/inc/vpn.inc
440 440
				if (isset($ph1ent['disabled']))
441 441
					continue;
442 442

  
443
				if (strpos($ph1ent['authentication_method'], 'rsa') || $ph1ent['authentication_method'] == 'eap-tls') {
443
				if (strstr($ph1ent['authentication_method'], 'rsa') || $ph1ent['authentication_method'] == 'eap-tls') {
444 444
					$certline = '';
445 445

  
446 446
					$ikeid = $ph1ent['ikeid'];

Also available in: Unified diff