File tree Expand file tree Collapse file tree
wrapper/CSharp/wolfSSL-TLS-Server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ public static void Main(string[] args)
9090 /* These paths should be changed for use */
9191 string fileCert = wolfssl . setPath ( "server-cert.pem" ) ;
9292 string fileKey = wolfssl . setPath ( "server-key.pem" ) ;
93- StringBuilder dh2048Pem = new StringBuilder ( wolfssl . setPath ( "dh2048.pem" ) ) ;
93+ StringBuilder dhparam = new StringBuilder ( wolfssl . setPath ( "dh2048.pem" ) ) ;
9494
95- if ( fileCert == "" || fileKey == "" || dh2048Pem . Length == 0 ) {
95+ if ( fileCert == "" || fileKey == "" || dhparam . Length == 0 ) {
9696 Console . WriteLine ( "Platform not supported." ) ;
9797 return ;
9898 }
@@ -190,7 +190,7 @@ public static void Main(string[] args)
190190 return ;
191191 }
192192
193- if ( wolfssl . SetTmpDH_file ( ssl , dh2048Pem , wolfssl . SSL_FILETYPE_PEM ) != wolfssl . SUCCESS )
193+ if ( wolfssl . SetTmpDH_file ( ssl , dhparam , wolfssl . SSL_FILETYPE_PEM ) != wolfssl . SUCCESS )
194194 {
195195 Console . WriteLine ( "Error in setting dh2048Pem" ) ;
196196 Console . WriteLine ( wolfssl . get_error ( ssl ) ) ;
You can’t perform that action at this time.
0 commit comments