It extends only to criminal proceedings and not to civil proceedings or proceedings which are not of criminal nature.