Test case for #1575
Implement #1575

Conflicts:
	ext/flash/session.c
Skip test for #1340 when openssl is not available
Merge pull request #1613 from sjinks/1.2.5

[1.2.5] Backport #1575 from 1.3.0