fix autotools
add make rpm32 target
flush out the promote for input passwd
move code to cpp